5high / konke

控客小K 接入Home Assistant,支持最新版本HA 目前最新版本(0.103),相信未来的版本也可以支持。
http://1t.click/avAU
Apache License 2.0
25 stars 16 forks source link

2024.1版本的homeassistant是不是已经不支持了 #10

Open yunhai20082008 opened 9 months ago

yunhai20082008 commented 9 months ago

如题

iamhaifeng commented 6 months ago

HA版本:2024.2.2,添加本插件后报错,无法添加实体:

2024-03-24 17:40:14.593 ERROR (MainThread) [homeassistant.components.switch] Error while setting up konke platform for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/konke/switch.py", line 47, in async_setup_platform model = config[CONF_MODEL].lower()


KeyError: 'model'

@5high 
iamhaifeng commented 6 months ago

HA版本:2024.2.2,添加本插件后报错,无法添加实体:

2024-03-24 17:40:14.593 ERROR (MainThread) [homeassistant.components.switch] Error while setting up konke platform for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/konke/switch.py", line 47, in async_setup_platform model = config[CONF_MODEL].lower() ~~^^^^^^^^^^^^ KeyError: 'model'

@5high

自己解决了,在configuration.yaml中,按以下格式进行配置:(添加model字段,建议修改README)

switch:

iamhaifeng commented 6 months ago

11

iambbf commented 2 months ago

HA版本:2024.7.1,添加本插件添加light后报错,无法添加灯光实体: configuration.yaml中配置: light:

将light.py中的的 Light 改成 LightEntity 后,可接入智能灯泡进行控制

ssyufeng commented 1 month ago

求救大神minipro的插座遥控是不是失效了 remote: