一、在树梅派5上安装home-assistant
https://www.home-assistant.io/installation/
https://github.com/home-assistant/operating-system/releases
目前是在树
docker-compose up -d
version: '3'
services:
# https://www.home-assistant.io/installation/linux#docker-compose
homeassistant:
container_name: homeassistant
image: "homeassistant/home-assistant"
environment:
- TZ=Asia/Shanghai
ports:
- "8123:8123"
volumes:
- /root/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /etc/hosts:/etc/hosts:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host
二、接入米家
好久没更新了:https://github.com/ha0y/xiaomi_miot_raw
最近还在更新:https://github.com/al-one/hass-xiaomi-miot
官方强势来袭:https://github.com/XiaoMi/ha_xiaomi_home
1.对比下趋势
https://ossinsight.io/analyze/XiaoMi/ha_xiaomi_home?vs=al-one%2Fhass-xiaomi-miot#overview
还是建议用小米官方的
2.手动安装插件
git clone https://github.com/XiaoMi/ha_xiaomi_home
cp -r ha_xiaomi_home/custom_components/xiaomi_home /root/homeassistant/custom_components
3.配置方式
安装完成后,重启 Home Assistant。待 Home Assistant 启动后,在「设置」菜单中点击「设备与服务」选项,在新界面中选择「添加集成」,搜索「xiaomi home」,按照提示操作即可。
三、接入公牛
1.手动安装插件
https://github.com/stevenjoezhang/hass-iotbull
git clone https://github.com/stevenjoezhang/hass-iotbull
cp -r hass-iotbull/custom_components/bull /root/homeassistant/custom_components
2.配置方式
安装完成后,重启 Home Assistant。待 Home Assistant 启动后,在「设置」菜单中点击「设备与服务」选项,在新界面中选择「添加集成」,搜索「Bull IoT」,按照提示操作即可。