AppDaemon (HADashboard) Installation Guide
Installation Prerequisites
- HomeAssistant access address and permanent Token
- Linux runtime environment
- Python3 runtime environment (the following is based on CentOS 7)
yum install python3
pip install -U pip3 setuptools
Installing AppDaemon
pip3 install appdaemon
Adding Configuration Files
Modify
文件路径according to the actual path of your configuration folder Use Vim to edit theAppDaemonconfiguration file
vim /home/appdaemon/appdaemon.yaml
The
AppDaemonconfiguration file content is as follows Modify经度,纬度,HA 路径, andHA Tokenaccording to the actual path of your configuration folder
appdaemon:
time_zone: Asia/Shanghai
latitude: 31.0
longitude: 121.0
elevation: 0
plugins:
HASS:
type: hass
ha_url: http://192.168.1.7:8123
token: eyJ0eXAiOiJKV1QiLCJ
hadashboard:
http:
url: http://0.0.0.0:5050
admin:
api:
Starting AppDaemon Manually
Modify the command according to the actual path of your configuration folder
appdaemon -c /home/appdaemon/
Auto-starting AppDaemon
- Use Vim to edit the
systemctlconfiguration file
sudo vim /etc/systemd/system/appdaemon@appdaemon.service
- The
systemctlconfiguration file content is as follows
Modify
文件路径according to the actual path of your configuration folder
[Unit]
Description=AppDaemon
[Service]
Type=simple
ExecStart=/usr/local/bin/appdaemon -c /home/appdaemon/
[Install]
WantedBy=multi-user.target
- Related commands
#重载配置文件
systemctl daemon-reload
#启动
systemctl start appdaemon@appdaemon.service
#自动启动
systemctl enable appdaemon@appdaemon.service
#重启动
systemctl restart appdaemon@appdaemon.service
References
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