AppDaemon and HADashboard Setup

Hi all,

I’m having major issues with HADashboard getting set up. I keep getting “WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds” errors which results in my Dashboard saying “Entity Not Found”

I’ve spent about two days on this and still can’t figure it out and have literally looked at every thread possible.

My AppDaemon Config file is as follows:

    secrets: /config/secrets.yaml

log:
  logfile: STDOUT
  errorfile: STDERR

appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  time_zone: Asia/Hong_Kong
  api_key: !secret dash_pw
  api_ssl_certificate: /ssl/fullchain.pem
  api_ssl_key: /ssl/privkey.pem
  plugins:
    HASS:
      type: hass
      ha_url: https://xxx.duckdns.org
      ha_key: !secret dash_pw
      token: !secret token
      cert_path: config/ssl/fullchain.pem
      cert_verify: True

hadashboard:
  dash_url: https://eugenelai.duckdns.org:5050
  dash_dir: /config/appdaemon/dashboards
  dash_ssl_certificate: /ssl/fullchain.pem
  dash_ssl_key: /ssl/privkey.pem
  dash_password: !secret dash_pw

You can have a look at the full error log here: https://hastebin.com/vayudibapi.coffeescript

In addition my Hassio config looks as follows:
homeassistant:
name: Home
latitude: !secret home_latitude
longitude: !secret home_longitude
elevation: 50
unit_system: metric
time_zone: Asia/Hong_Kong
customize: !include customize.yaml
auth_providers:
- type: legacy_api_password
http:
api_password: !secret http_api_password
base_url: xxx.duckdns.org
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
ssl_profile: intermediate

I’m literally pulling my hair out! any help would be appreciated

Got a fix from the main himself. Basically updated my code to the following:

secrets: /config/secrets.yaml

log:
  logfile: STDOUT
  errorfile: STDERR

appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  time_zone: Asia/Hong_Kong
  api_key: !secret dash_pw
  api_ssl_certificate: /ssl/fullchain.pem
  api_ssl_key: /ssl/privkey.pem
  plugins:
    HASS:
      type: hass
      ha_url: http://hassio/homeassistant

hadashboard:
  dash_url: https://eugenelai.duckdns.org:5050
  dash_dir: /config/appdaemon/dashboards
  dash_ssl_certificate: /ssl/fullchain.pem
  dash_ssl_key: /ssl/privkey.pem
  dash_password: !secret dash_pw

The changes were that ha_url and i removed:

  • ha_key
  • token
  • cert_path
  • cert_verifu

Hope that helps someone