走钢丝
deepin
2020-05-16 17:08 看起来挺专业,支持一下。

Reply Like 0 View the author

If the callback queue is not empty, the event loop selects the first callback and pushes it onto the call stack for execution. doramas wow
Popular Ranking
ChangePopular Events
More
最终目的是用树莓派上的wukong-robot控制一些智能家具,在这里记录一下。
1.安装homeassistant(venv (as another user)),进入官网选择alternative installation methods。
链接在此:https://www.home-assistant.io/docs/installation/raspberry-pi/
2.homeassistant添加米家台灯一代
3.添加米家空调伴侣
- 下面来说说我遇到的问题,我是在deepin 20内使用普通方法安装的,python虚拟环境venv(as another user)
1)使用当前用户把hacs压缩包放置好后,并没有成功加载出来。怀疑是权限问题,之后使用homeassistant用户cp加载成功https://hacs.xyz/docs/configuration/basic
3)获取token,我使用的是旧版本米家,局域网内所有设备token都在一个log内,很方便获取。
https://www.apkmirror.com/apk/xiaomi-inc/mihome/mihome-5-4-49-release/mi-home-5-4-49-android-apk-download/
日志在Smarthome/logs,或是smarthome/plugs/logs.
4.使用树莓派上的悟空机器人控制homeassistant
这个部分悟空上的hass插件部分写的很清楚,不过我只会模仿开关,用悟空语音控制空调,台灯的开关。
链接:https://wukong.hahack.com/#/contrib?id=hass