
AppDaemon (HADashboard)安装教程
安装准备
- HomeAssistant 访问地址,以及永久 Token
- Linux 运行环境
- Python3 运行环境(下面是基于 CentOS 7 的)
1
2yum install python3
pip install -U pip3 setuptools
安装 AppDaemon
1 |
|
添加配置文件
需根据配置文件夹所在路径,自行修改
文件路径
使用 Vim 编辑AppDaemon
配置文件
1 |
|
AppDaemon
配置文件内容如下
需根据配置文件夹所在路径,自行修改经度
,纬度
,HA 路径
,HA Token
1 |
|
手工启动 AppDeamon
需根据配置文件夹所在路径,自行修改命令
1 |
|
自动启动 AppDeamon
使用 Vim 编辑
systemctl
配置文件1
sudo vim /etc/systemd/system/[email protected]
systemctl
配置文件内容如下需根据配置文件夹所在路径,自行修改
文件路径
1
2
3
4
5
6
7[Unit]
Description=AppDaemon
[Service]
Type=simple
ExecStart=/usr/local/bin/appdaemon -c /home/appdaemon/
[Install]
WantedBy=multi-user.target相关命令
1
2
3
4
5
6
7
8#重载配置文件
systemctl daemon-reload
#启动
systemctl start [email protected]
#自动启动
systemctl enable [email protected]
#重启动
systemctl restart [email protected]
参考文章
https://appdaemon.readthedocs.io/en/latest/INSTALL.html#pip3
https://appdaemon.readthedocs.io/en/latest/DASHBOARD_CREATION.html#widget-reference
http://apod.top/index.php/post/114.html
https://bbs.hassbian.com/thread-388-1-1.html