|
发表于 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))
重启即可
|
|