Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save willwhui/d499629ca6c46aaf29ba2a06c2ad209d to your computer and use it in GitHub Desktop.
Save willwhui/d499629ca6c46aaf29ba2a06c2ad209d to your computer and use it in GitHub Desktop.
为hass添加小米的智能插座基础版
@willwhui
Copy link
Author

willwhui commented Nov 1, 2017

没有python-mirobo,开关加载不成功

配置好yaml之后,启动hass,结果前台显示:

Invalid Config
...

后台日志搜索关键字,找到错误:

Not initializing switch.xiaomi_miio because could not install dependency python-mirobo==0.2.0

原来必须得安装python-mirobo==0.2.0,这是对小米智能插座等设备作支持的模块。
记得在虚拟环境下安装:

$ sudo su homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install python-mirobo

因为网络环境的问题出现几次远程连接中断,重复上面的pip3安装命令就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment