代码
#装好docker
M1用9000端口沟通。
#home-assistants v0.88.1使用8000和9000端口和DC1 M1连接
docker run -d --restart=always --name="home-assistants" -v /var/lib/docker/homeassistant/config:/config -p 8000:8000 -p 8123:8123 -p 9000:9000 homeassistant/aarch64-homeassistant:0.88.1
------------
如果正在使用Portainer9000端口。看这里重新弄Portainer
#Portainer使用7999端口
docker run -d --restart=always --name="portainer" -p 7999:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -v /etc/localtime:/etc/localtime -e TZ=Asia/Shanghai portainer/portainer:latest
-------------
#压缩包几个文件覆盖进/var/lib/docker/homeassistant/config/
蓝奏云https://www.lanzous.com/i4r002d
#做劫持(压缩包有操作)
#改packages/phicomm_dc1.yaml的IP为DC1;
下面内容复制进configuration.yaml底部
homeassistant:
packages: !include_dir_named packages
------------------------完工----------------------------------
刚接触的朋友 仔细看压缩包里记事本注释;
#用不了的话请重启插排和Armbian
#等几分钟再进Home-Assistant
http://192.168.2.xxx:8123/
--------------------------------------------------
感谢:
https://bbs.hassbian.com/thread-4601-1-1.html
https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=342581&page=1#pid3135527
https://www.right.com.cn/forum/thread-521786-1-1.html
https://www.right.com.cn/forum/thread-546838-1-1.htmlhttps://www.8848.kim/index.php/2019/05/04/%E6%82%9F%E7%A9%BAm1%E6%8E%A5%E5%85%A5ha/
没有评论:
发表评论