HOME ASSISTANT

来自iCenter Wiki
2019年1月11日 (五) 04:25Maxd讨论 | 贡献的版本

跳转至: 导航搜索

折腾记录

101.6.161.107

1 安装centos7 mini root密码123456 icenter用户密码:icenter


2 网络dhclient 获取地址

 开启sshd  systemctl start sshd
 putty连接到 IP地址

3 更新清华镜像yum源(ssh后可以复制的到repo源文件)

 yum makecache

4 安装 python3 ,似乎是要连接外网才能通过

yum install rh-python36
scl enable rh-python36 bash

5 安装home assistant

pip3 install homeassistant
hass           (启动hass,端口8123)

打开 IP:8123 (要启动10多分钟才能配置好,似乎在安软件)设置用户名密码admin

6 重启后无网络ip的处理

 编辑网卡配置文件改onboot=yes  
 运行hass,不工作,python默认为2.7,还需要运行这个命令,使用python3,再启动hass
scl enable rh-python36 bash
浏览中发现的一个网站与物联网有关,留存参考 https://www.balena.io/what-is-balena