Hi,
I’ve been having trouble with getting appdaemon and dashboard working.
It did work for a short while, where I got the standard Hello.dash
and test.dash
compiled (though the test.dash
lights kept showing “entity not found”, and didn’t work), but I have no clue what I have changed to break it.
Now, when I try to connect to the local IP, https://192.168.0.160:5050/, I get a blank page. However, if I type in the IP of a specific dashboard (e.g. https://192.168.0.160:5050/Hello), I get that page served. It seems like it can’t compile, though. If I change the text in Hello.dash
and reboot, the text doesn’t change when served in the browser.
I keep getting a warning in the appdaemon.log
:
2018-03-18 20:05:12.725253 INFO AppDaemon Version 3.0.0b5 starting
2018-03-18 20:05:12.726786 INFO Configuration read from: /home/homeassistant/.homeassistant/appdaemon.yaml
2018-03-18 20:05:12.728797 INFO AppDaemon: Starting Apps
2018-03-18 20:05:12.735833 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-18 20:05:12.790254 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-18 20:05:12.791274 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-03-18 20:05:12.792108 INFO Starting Dashboards
2018-03-18 20:05:12.825274 INFO Starting API
2018-03-18 20:05:12.831995 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
And the last line repeats every 4-5 seconds. I also get an error in the access.log
when trying to load a dashboard that has not yet been compiled:
2018-03-18 15:49:47.856228 INFO HADashboard: Succesful logon from 192.168.0.160:5050
2018-03-18 15:49:55.215437 INFO Compiling dashboard 'Hello'
2018-03-18 15:49:56.150546 INFO function [get_dashboard] finished in 944 ms
2018-03-18 15:50:19.250704 INFO function [get_dashboard] finished in 85 ms
2018-03-18 15:54:10.670571 INFO Compiling dashboard 'Hello'
2018-03-18 15:54:11.563656 INFO function [get_dashboard] finished in 901 ms
2018-03-18 15:54:13.254068 INFO HADashboard: New dashboard connected: Hello Panel
2018-03-18 16:04:17.730676 INFO HADashboard: Dashboard disconnected
2018-03-18 16:04:19.726959 INFO Compiling dashboard 'test'
2018-03-18 16:04:21.434504 INFO function [get_dashboard] finished in 1716 ms
2018-03-18 16:04:22.391008 INFO HADashboard: New dashboard connected: Test Panel
2018-03-18 16:06:30.637147 INFO Compiling dashboard 'test'
2018-03-18 16:06:32.356251 INFO function [get_dashboard] finished in 1733 ms
2018-03-18 16:06:32.378096 INFO HADashboard: Dashboard disconnected
2018-03-18 16:06:33.955990 INFO HADashboard: New dashboard connected: Test Panel
2018-03-18 16:22:14.803797 INFO function [get_dashboard] finished in 116 ms
2018-03-18 16:22:16.536257 INFO HADashboard: New dashboard connected: Test Panel
2018-03-18 16:30:42.521042 INFO Compiling dashboard 'test2'
2018-03-18 16:30:42.954578 WARNING Dashboard 'test2' not found
2018-03-18 16:30:42.955402 WARNING ------------------------------------------------------------
2018-03-18 16:30:42.955793 WARNING Unexpected error during DASH creation
2018-03-18 16:30:42.956112 WARNING ------------------------------------------------------------
2018-03-18 16:30:42.961730 WARNING Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/appdaemon/dashboard.py", line 822, in get_dashboard
with open(include_path, "r") as include_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/homeassistant/.homeassistant/compiled/html/default/test2_head.html'
(The test2.dash is another I made that has not been compiled, and it seems like it can’t.)
My appdaemon.yaml
:
secrets: /home/homeassistant/.homeassistant/secrets.yaml
log:
accessfile: /mnt/hassdata/appdaemon/access.log
errorfile: /mnt/hassdata/appdaemon/error.log
logfile: /mnt/hassdata/appdaemon/appdaemon.log
log_generations: 3
log_size: 1000000
appdaemon:
logfile: STDOUT
errorfile: STDERR
threads: 10
api_port: 5000
app_dir: /home/homeassistant/.homeassistant/appdaemon/apps
api_key: !secret appdaemon_api_key
api_ssl_certificate: /etc/mosquitto/ca.crt
api_ssl_key: /etc/mosquitto/ca.key
plugins:
HASS:
type: hass
ha_url: secret_base_url # https:// duckdns IP
# ha_url: https://192.168.0.160:8123
ha_key: !secret api_password
cert_path: /etc/mosquitto/ca.crt
cert_verify: True
namespace: default
hadashboard:
# dash_url: secret hadash_url # https:// duckdns IP : port
dash_url: https://192.168.0.160:5050
dash_dir: /home/homeassistant/.homeassistant/appdaemon/dashboards/
dash_ssl_certificate: !secret letsencrypt_fullchain # location of live let'sencrypt fullchain.pem file
dash_ssl_key: !secret letsencrypt_prikey # location of live let'sencrypt privkey.pem file
dash_password: !secret dash_password
dash_compile_on_start: 1
Where the fullchain.pem and privkey.pem are the ones I use for my duckdns IP.
What I’ve found on the warning by searching mostly relates to either old versions of AppDaemon, something about permissions or ssl.