在升级0.112后,发现有几个插件因为状态更新出了问题,看有人在github上讨论应该是HA的启动时的更新机制发生了变化。
今天又发现控客插件的Klight(可以变换RGB颜色的那个灯泡)也开始报错了,不过可能不是上述的原因。插件作者@jedmeng大佬已经好久没有出现在论坛里了,他的github源也已经2年没更新了,不知道是否有其他大佬自行开发或研究过控客的接入,能否能提供一些帮助?十分感谢!
日志如下:
Logger: homeassistant.helpers.entity
Source: custom_components/konke/light.py:179
First occurred: 下午4:11:25 (25 occurrences)
Last logged: 下午4:23:46
Update for light.klight fails
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pykonkeio/device/klight.py", line 40, in update
_, r, g, b, w, t, _ = m2.split('#')
ValueError: not enough values to unpack (expected 7, got 6)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 463, in async_device_update
await self.async_update() # type: ignore
File "/config/custom_components/konke/light.py", line 179, in async_update
await self._device.update(type='light')
File "/usr/local/lib/python3.7/site-packages/pykonkeio/device/klight.py", line 46, in update
raise error.ErrorMessageFormat
pykonkeio.error.ErrorMessageFormat: Error: wrong message
|