虚拟机安装homeassistant 米家

vm 安装虚拟机

http://www.taodudu.cc/news/show-5456363.html?action=onClick
HomeAssistant下载

地址 https://www.home-assistant.io/installation/
虚拟机安装homeassistant 米家_第1张图片虚拟机安装homeassistant 米家_第2张图片

虚拟机安装homeassistant 米家_第3张图片

通过vm导入homeassistant的虚拟机时,需要配置虚拟机的操作系统。
虚拟机安装homeassistant 米家_第4张图片

完成

安装 terminal ssh

虚拟机安装homeassistant 米家_第5张图片

在安装docker及hassio

输入apt install http://docker.io 安装docker直至进度走完。

5、安装docker可视面板:

docker run --restart always --name fast -p 8081:8081 -d -v /var/run/docker.sock:/var/run/docker.sock wangbinxingkong/fast

安装完成后浏览器访问http://IP:8081,第一次要注册后登录,进入后可以查看docker的运行情况。

6、安装HASSIO,直接复制输入:

docker run -d --name hassio_supervisor --privileged \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/dbus:/var/run/dbus \
-v /opt/docker/hassio:/data \
-e SUPERVISOR_SHARE="/opt/docker/hassio" \
-e SUPERVISOR_NAME=hassio_supervisor \
-e HOMEASSISTANT_REPOSITORY="homeassistant/qemuarm-homeassistant" \
--restart unless-stopped homeassistant/armv7-hassio-supervisor

#进入hass目录,安装hacs

doceker ps
docker exec -it name  bash
wget -O - https://get.hacs.xyz | bash -    或者 wget -O - https://hacs.vip/get | bash -
exit
docker  restart   ID 

ssh输入 wget -O - http://get.hacs.xyz | bash - 安装hacs

完成后输入 reboot 重启 homeassistant虚拟机安装homeassistant 米家_第6张图片

hyper V 安装

https://zhuanlan.zhihu.com/p/611203682

http://homeassistant.local:8123/

进入ha

虚拟机安装homeassistant 米家_第7张图片
虚拟机安装homeassistant 米家_第8张图片安装时 需要加速器
虚拟机安装homeassistant 米家_第9张图片

如果还是不行的话,那说明你的网络还是有问题,需要用到github的国内镜像源替换加载项商店,我亲测可用的有两个:

    https://hub.nuaa.cf/

    https://cdn.githubjs.cf/

具体方法是点击上方图片右上角的三个小点,点击仓库,输入以下网址,选择添加,如果能添加上去,二选一即可。添加完成后刷新几次,或者重启Homeassistant试试。

    https://hub.nuaa.cf/hassio-addons/repository

    https://cdn.githubjs.cf/hassio-addons/repository

虚拟机安装homeassistant 米家_第10张图片

虚拟机安装homeassistant 米家_第11张图片

虚拟机安装homeassistant 米家_第12张图片
虚拟机安装homeassistant 米家_第13张图片

输入下面的代码 并授权

虚拟机安装homeassistant 米家_第14张图片

虚拟机安装homeassistant 米家_第15张图片
虚拟机安装homeassistant 米家_第16张图片
虚拟机安装homeassistant 米家_第17张图片
重启
虚拟机安装homeassistant 米家_第18张图片

虚拟机安装homeassistant 米家_第19张图片

home assistant 小米插件 登录失败时 关闭 梯子
虚拟机安装homeassistant 米家_第20张图片### 注释 治!](https://img-blog.csdnimg.cn/d9f818210cea400c883191ede02812ab.png)

虚拟机安装homeassistant 米家_第21张图片

这里发现小米lot 添加失败 换成了另一个集成

虚拟机安装homeassistant 米家_第22张图片

虚拟机安装homeassistant 米家_第23张图片
虚拟机安装homeassistant 米家_第24张图片

win10 开机不需要登录

win+R
输入命令“gpedit.msc”
虚拟机安装homeassistant 米家_第25张图片自动登录系统设置

win+R 输入control userpasswords2后按下回车键,打开“用户账户”的属性,取消“要使用本机,用户必须输入用户名和密码(E)”的勾选,然后按下“确定”;

你可能感兴趣的:(物联网)