本帖最后由 抚音 于 2018-10-26 16:02 编辑
Sorry平时很少上来看.
可以直接通过pip来更新:
pip3 install --upgrade PyXiaomiGateway
或者:
pip3 install PyXiaomiGateway==0.11.1
如果更新不了可以确认一下pip源, 比如更换回: https://pypi.org/simple/
然后无线开关的py文件还要改:
homeassistant/components/binary_sensor/xiaomi_aqara.py
elif model in ['86sw1', 'sensor_86sw1', 'sensor_86sw1.aq1', 'remote.b186acn01']:
还有:
elif model in ['86sw2', 'sensor_86sw2', 'sensor_86sw2.aq1', 'remote.b286acn01'
保存后重启一下HA:
sudo systemctl restart [email protected] |