还是在树莓派上装带
supervisor
的hass.io
吧,别瞎折腾了。
安装HA。
docker run -d --name="home-assistant" -v /home/pi/docker/hassio:/config -e TZ=Europe/Madrid --net=host homeassistant/home-assistant:stable
访问OpenWRT地址+端口8123
,比如http://192.168.5.1:8123/
。
进入容器中的bash
,退出用exit
。
root@OpenWrt:/# docker exec -it home-assistant bash
安装HACS:重启HA,进入集成,添加集成HACS。
bash-5.0# wget -q -O - https://install.hacs.xyz | bash -
---
安装configurator
。
bash-5.0# pip install hass-configurator
启动configurator
。
bash-5.0# hass-configurator -seb ${PWD}
访问configurator
,OpenWRT地址+端口3218
,比如http://192.168.5.1:3218/
。