本帖最后由 killadm 于 2018-11-13 12:03 编辑
更新:在楼主的帮助下搞定了,不是插件的问题,是另一个K2自己抽风。
K1在更新后也出来了。
===================================================================================
不知道为啥,设置了一个k1两个k2,只出来了一个k2。
昨天用新推的代码测试都通过了。
2018-11-11 21:25:48 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.smatplugk fails
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
await self.async_device_update()
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
await self.async_update()
File "/config/custom_components/switch/konke.py", line 127, in async_update
await self._device.update(type='relay')
File "/config/deps/lib/python3.7/site-packages/pykonkeio/device/basetoggle.py", line 26, in update
self.status = await self.send_message('check', **kwargs)
TypeError: send_message() got an unexpected keyword argument 'type'
配置是这样的
switch:
- platform: konke
host: 192.168.123.35
name: smatplugk
model: k1
- platform: konke
host: 192.168.123.231
name: pc
model: k2
- platform: konke
host: 192.168.123.232
name: projector
model: k2
翻译中...
|