我换成syssi版本的chuangmi_ir可以使用,但是脚本发送码又出错了
Error executing service <ServiceCall switch.send_command_192_168_31_19 (c:c01a18be5e8a4e828198de5fbaa0a084): command=['Z6VHADgCAACVBgAAvwgAAG8RAABDIwAAYiMAALyYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1ABAAABAQAAAQABAQAAAQEBAAAAAQEBAAABAQEAAAABBgJAA=']> Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1177, in _event_to_service_call await service_handler.func(service_call) File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro res = func(*args, **kw) File "/config/custom_components/switch/chuangmi_ir.py", line 115, in _send_command ir_remote.play_raw(command, 38400) File "/config/deps/lib/python3.6/site-packages/miio/chuangmi_ir.py", line 64, in play_raw {'freq': frequency, 'code': command}) File "/config/deps/lib/python3.6/site-packages/miio/device.py", line 270, in send raise DeviceError(m.data.value["error"]) miio.exceptions.DeviceError: {'code': -5008, 'message': 'magic error'}
提交给github了,https://github.com/syssi/chuangmi_ir/issues/13 |