Boa tarde,
Obrigado pelo email e pelas indicações. Como disse antes é fruto da minha ainda inexperiencia.
/config/configuration.yaml
################################################
# Comando Xiaomi miio 01 #
################################################
smartir:
check_updates: false
remote:
- platform: xiaomi_miio
name: xiaomi_miio_01
host: !secret ip_xiaomi_miio_01
token: !secret token_xiaomi_miio_01
#climate:
# - platform: xiaomi_miio
# name: ac_quarto
# remote: remote.xiaomi_miio_01
# commands: !include Roda-YKR-H-102E.yaml
/config/secrets.yaml
ip_xiaomi_miio_01: 192.168.x.xx
token_xiaomi_miio_01: xxxxxxxxxxxxxxx
ficheiro /config/Roda-YKR-H-102E.yaml:
'off': <raw_command>
cool:
low:
16: <raw_command>
heat:
low: <raw_command>
high: <raw_command>
dry: <raw_command>
presets:
'off': <raw_command>
eco: <raw_command>
sleep: <raw_command>
Este é o erro que me dá no log:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/remote/__init__.py:159
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 16:05:15 (2 occurrences)
Last logged: 16:07:16
[547796380880]
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/remote/__init__.py", line 164, in async_learn_command await self.hass.async_add_executor_job(ft.partial(self.learn_command, **kwargs)) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/remote/__init__.py", line 159, in learn_command raise NotImplementedError() NotImplementedError
erro proveniente do ficheiro: /config/home-assistant_v2.db
'utf-8' codec can't decode byte 0xcb in position 26: invalid continuation byte
Ferramentas de programação → Estados
[remote.xiaomi_miio_01] on friendly_name: xiaomi_miio_01 supported_features: 0
\192.168.x.xxx\config\custom_components\xiaomi_remote
Não sei o que adicionar mais para que seja clara a minha explicação.
Obrigado