使用syssi 大神 .py 文件連接HA, 出現以下報錯, 求各位英雄幫忙, 謝!!
- platform: xiaomi_miio_fan
name: "kaylie_room_fan"
host: 192.168.1.199
token: 'XXXXXXXXXXXXXXXXXXXXXXXXX'
Fan Model - zhimi.fan.za3
homeassistant version - 0.89.2 2019-12-12 12:10:07 ERROR (SyncWorker_9) [miio.fan] Count (17) of requested properties does not match the count (2) of received values.
2019-12-12 12:10:07 ERROR (MainThread) [homeassistant.components.fan] xiaomi_miio_fan: Error on device update!
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 346, in async_device_update
await self.async_update()
File "/config/custom_components/xiaomi_miio_fan/fan.py", line 492, in async_update
self._oscillate = state.oscillate
File "/usr/local/lib/python3.7/site-packages/miio/fan.py", line 147, in oscillate
return self.data["angle_enable"] == "on"
KeyError: 'angle_enable'
|