找回密码
 立即注册
查看: 6694|回复: 4

[求助] 求hass.io 0.64.3 aqara 零火版双键开关 ,homeassistant 找不到

[复制链接]

8

主题

211

回帖

3368

积分

论坛元老

积分
3368
金钱
3149
HASS币
0
发表于 2018-3-7 09:05:22 | 显示全部楼层 |阅读模式
错误log如下:

2018-03-07 08:41:29 ERROR (SyncWorker_15) [xiaomi_gateway] Unsupported device found! Please create an issue at https://github.com/Danielhiversen/PyXiaomiGateway/issues and provide the following data: {'cmd': 'read_ack', 'model': 'ctrl_ln2.aq1', 'sid': '158d00021146b9', 'short_id': 43470, 'data': '{"voltage":3600}'}


回复

使用道具 举报

8

主题

211

回帖

3368

积分

论坛元老

积分
3368
金钱
3149
HASS币
0
 楼主| 发表于 2018-3-7 10:30:48 | 显示全部楼层
The ctrl_ln2.aq1 will be supported with the release of HA 0.65.。看来只能等0.65了
回复

使用道具 举报

175

主题

2794

回帖

7618

积分

超级版主

我就是六神

积分
7618
金钱
4624
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2018-3-7 13:15:01 | 显示全部楼层
jscsmlxj 发表于 2018-3-7 10:30
The ctrl_ln2.aq1 will be supported with the release of HA 0.65.。看来只能等0.65了

0.65又会出现更多的bug,又要修复
回复

使用道具 举报

2

主题

314

回帖

1626

积分

金牌会员

积分
1626
金钱
1310
HASS币
0
发表于 2018-3-7 16:34:09 | 显示全部楼层
修改 /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/xiaomi_gateway/__init__.py 文件。在  'switch': ['plug', 'ctrl_neutral1', 'ctrl_neutral2', 'ctrl_ln1', 'ctrl_ln2', 'ctrl_ln2.aq1', '86plug'], 中添加  'ctrl_ln2.aq1',
修改  /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/switch/xiaomi_aqara.py 文件,添加
elif model == 'ctrl_ln2.aq1':
                devices.append(XiaomiGenericSwitch(device,
                                                   'Wall Switch LN Left',
                                                   'channel_0',
                                                   False, gateway))
                devices.append(XiaomiGenericSwitch(device,
                                                   'Wall Switch LN Right',
                                                   'channel_1',
                                                   False, gateway))
重启即可
回复

使用道具 举报

2

主题

314

回帖

1626

积分

金牌会员

积分
1626
金钱
1310
HASS币
0
发表于 2018-3-7 16:38:05 | 显示全部楼层
文件样本

xiaomi_aqara.py

5.51 KB, 下载次数: 14

__init__.py

13.05 KB, 下载次数: 18

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-5-3 23:11 , Processed in 0.466371 second(s), 28 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表