Created
November 2, 2017 10:25
-
-
Save willwhui/5c3a04653154e84c1d6c54b852d57174 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
为hass接入小米空气净化器2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
强行接入(以后的hass新版本应该不会有这个问题)
经@cxlwill 指点,如果将github.com工程中的新文件直接复制到对应的目录去,就可以识别了。
也就是说,把
https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/fan
这个目录下的
xiaomi_miio.py
xiaomi_miio_services.yaml
这两个文件复制到hass设备的
/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/fan/
完成操作之后,重启hass,净化器确实被识别了!
在重启过程中,会触发python-miio的安装:
因此重启的过程会比平时长一些。
如果不幸没有安装成功的话,自行进入虚拟环境pip3安装一下python-miio,再重启hass,应该也是可以的。