中文 English

AppDaemon (HADashboard) Installation Guide

Published: 2021-05-29
AppDaemon HomeAssistant HADashboard

Installation Prerequisites

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 the AppDaemon configuration file

vim /home/appdaemon/appdaemon.yaml

The AppDaemon configuration file content is as follows Modify 经度, 纬度, HA 路径, and HA Token according 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

sudo vim /etc/systemd/system/appdaemon@appdaemon.service

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
#重载配置文件
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