安装HomeAssistant Core
常见安装方式
- 在系统python环境中安装
- 在python虚拟环境中安装
- 单纯的HomeAssistant docker
- linux系统上的hass.io(Supervisor)
- HassOS系统
安装依赖关系
组件 | 依赖的python库 |
---|---|
homeassistant(core) | aiohttp/astral/bcrypt/pyyaml/pytz/requests/voluptuous/…… |
http | aiohttp_cors |
api | |
frontend | home-assistant-frontend |
recorder | sqlalchemy |
zeroconf | zeroconf |
bitcoin | blockchain |
…… | …… |
安装HomeAssistant
命令: sudo pip3 install homeassistant
执行内容:下载并安装上表中第一行内容
启动HomeAssistant
命令:hass
执行内容:
- 如果没有配置文件,生成配置目录与缺省配置文件
- 加载配置文件中的组件(以及其依赖的组件),安装对应依赖的python库
检查
进程:ps -ef|grep hass
网络:netstat -an|grep 8123
配置目录与配置文件:/home/pi/.homeassistant/
错误日志文件:/home/pi/.homeassistant/home-assistant.log
浏览器访问:http://xx.xx.xx.xx:8123/