Hello.
Using Home Assistant 0.63.0, python-miio 0.35.0 on an Arch Linux machine.
The remote is succesfully initialized, it efficiently learns commands, but when I try to send a command it gives this error:
Error executing service <ServiceCall remote.send_command: command=['lg_power'], entity_id=['remote.chuangmi'], num_repeats=1> Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call yield from service_handler.func(service_call) File "/usr/lib/python3.6/site-packages/homeassistant/components/remote/__init__.py", line 150, in async_handle_remote_service yield from remote.async_send_command(**kwargs) File "/usr/lib/python3.6/asyncio/futures.py", line 327, in __iter__ yield self # This tells Task to wait for completion. File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup future.result() File "/usr/lib/python3.6/asyncio/futures.py", line 243, in result raise self._exception File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3.6/site-packages/homeassistant/components/remote/xiaomi_miio.py", line 252, in send_command self._send_command(local_payload) File "/usr/lib/python3.6/site-packages/homeassistant/components/remote/xiaomi_miio.py", line 236, in _send_command self.device.play(payload) TypeError: play() missing 1 required positional argument: 'frequency'
My configuration:
remote:
- platform: xiaomi_miio
name: "Chuangmi"
host: 192.168.0.152
token: 74cecb7d4a6e561f1dc3c165da0cc1e3
hidden: false
commands:
lg_power:
command:
- raw:Z6VHABgCAABHAgAApAYAAOgIAACfEQAA/yIAAKScAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFEBAgEBAQEBAgIBAgICAgIBAQECAQEBAQICAgECAgICBgNQA=
and the script
lg_on_off:
sequence:
- service: remote.send_command
entity_id: remote.chuangmi
data:
command:
- 'lg_power'