I’m trying to install HADashboard, but I keep getting errors whenever I run it. I have the latest version of Hass.io and I’ve followed the instructions provided on the Home Assistant website, but I keep getting errors saying that AppDaemon was disconnected from Home Assistant. I also have DuckDNS with Let’s Encrypt setup. My internet provider has an issue where I can’t use DDNS hostnames from inside my LAN, but after adding a certificate exception in Firefox, I can use the Let’s Encrypt SSL with the IP of the server (192.168.1.69:8123).
This is my logfile
starting version 3.2.2
2018-02-18 15:46:39.162296 INFO AppDaemon Version 2.0.8 starting
2018-02-18 15:46:39.163801 INFO Configuration read from: /config/hadaemon/appdaemon.yaml
2018-02-18 15:46:41.660313 INFO Got initial state
2018-02-18 15:46:41.663337 INFO App initialization complete
2018-02-18 15:46:41.665964 INFO Starting dashboard
2018-02-18 15:46:42.582405 WARNING Disconnected from Home Assistant, retrying in 5 seconds
##
## Main arguments, all optional
##
title: Hello Panel
widget_dimensions: [120, 120]
widget_margins: [5, 5]
columns: 8
label:
widget_type: label
text: Hello World
layout:
- label(2x2)
The URL that is supposed to be the HADashboard, 192.168.1.69:5050, doesn’t load at all, and my browser just says it can’t connect. I’ve tried things I’ve seen in other posts about HADashboard problems, and they have gotten me from my initial “Can’t conenct to Home Assistant” to now saying “Disconnected from Home Assistant.” Any help with this would be great, and thanks in advance for any help.
That seems to get rid of the errors in the logs, but I still can’t go to the HADashboard page at 192.168.1.69:5050. I get an “Unable to Connect” message from Firefox.
Edit: After a minute or two, the errors about being unable to connect come back. No device inside my network can access DDNS domains that lead back to the network, only the internal IP’s.
if you cant access your home assistant with your duckdns from a browser then your setup is wrong.
if you have setup duckdns and letsencrypt the right way in home assistant, you cant reach your home assistant with http://local_ip:8123
the best way to go about this is to remove lets encrypt and duckdns from your home assistant.
then connect your dashboard to your local IP without https, but with http.
then install nginx as a proxyserver to connect to from the outside.
I can access Home Assistant through my duckdns name, just not on my home network. My internet provider blocks me from accessing my home network through my public IP from inside my network. I can only access my HA setup from https://mydomain.duckdns.org:8123 from outside my network, and https://192.168.1.69:8123, after ignoring the HTTPS error, from inside my network. With my current HADashboard configuration, I get an “Unable to connect” error in the logs when I try to use HTTP, and a “Disconnected from HA” error when I use HTTPS without verifying the cert, so I think that it’s able to find the HA server on my local network, just not connect properly.
Sorry if this wasn’t clear, but the HTTPS errors weren’t in the addon, but in my browser. After I tell my browser to not verify certs on that page, it works fine with HTTPS on. I added the option to AppDaemon config to ignore HTTPS certs, so it shouldn’t matter that it’s invalid for the IP.
You are running a very old version of AppDaemon - I don;t know for sure if the code to ignore certs is in there - you can try using --commtype SSE which uses a different code branch that used to work more reliably.
This code has also improved in the 3.0 beta if you want to give that a try, but beware of breaking changes in the upgrade.
Also, make sure you are running the latest version of HASS.IO - the appdaemon addon relies on some functionality introduced in the last month or two to work.