|
发表于 2021-1-14 18:41:53
|
显示全部楼层
本帖最后由 foxwywh 于 2021-1-14 18:58 编辑
问个问题,我在调试助手里能控制的设备是否只有2.0版的能用你这个办法接入,我只有一个电热毯是2.0的,接入成功,其它1.0版的都没有接入成功,是否跟这个版本有关系?如果能解决1.0版的接入就太好了,急等答复!
日志如下:
[color=var(--error-color)]2021-01-14 17:31:49 ERROR (MainThread) [homeassistant.components.light] xiaomi_miot_raw: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
await task
File "/config/custom_components/xiaomi_miot_raw/light.py", line 184, in async_update
state = statedict['switch_status']
KeyError: 'switch_status'
|
|