Help with authentication and HaDashboard

I just installed HADashboard and am having problems getting it to authenticate with HASSIO. Which I use Duckdns with.

This is my appdaemon.yaml

secrets: /config/secrets.yaml
log:
  logfile: STDOUT
  errorfile: STDERR
appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  plugins:
    HASS:
      type: hass
      ha_url: https://mysiteremoved.duckdns.org:8123
hadashboard:
  dash_url: http://192.168.0.40:5050
  dash_dir: /config/appdaemon/dashboards

I have enabled API password in my configuration.yaml

http:
  api_password: !secret http_password

In my Secrets file I have set the password

http_password: secretpassword

but I get this in my log file…

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: AppDaemon v1.6.0
 Python Apps and HADashboard using AppDaemon 3.x for Home Assistant
 From: Community Hass.io Add-ons
 By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
 armhf / null / HA 0.87.0 / SU 143 / stable
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing... 
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 20-init-configuration.sh: executing... 
[cont-init.d] 20-init-configuration.sh: exited 0.
[cont-init.d] 21-compiled-dir.sh: executing... 
[cont-init.d] 21-compiled-dir.sh: exited 0.
[cont-init.d] 30-auto-token.sh: executing... 
[cont-init.d] 30-auto-token.sh: exited 0.
[cont-init.d] 31-ha-url.sh: executing... 
WARNING: You are using an non-recommended Home Assistant URL!
WARNING: Setting the "ha_url" option in your AppDaemon config to
WARNING: "http://hassio/homeassistant" is recommended!
[cont-init.d] 31-ha-url.sh: exited 0.
[cont-init.d] 50-compiled-symlink.sh: executing... 
[cont-init.d] 50-compiled-symlink.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing... 
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-python-packages.sh: executing... 
[cont-init.d] 81-python-packages.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2019-02-14 14:48:44.438829 INFO AppDaemon Version 3.0.2 starting
2019-02-14 14:48:44.439496 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2019-02-14 14:48:44.444600 INFO AppDaemon: Starting Apps
2019-02-14 14:48:44.453371 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2019-02-14 14:48:44.732035 INFO AppDaemon: HASS: HASS Plugin Initializing
2019-02-14 14:48:44.733575 INFO AppDaemon: HASS: HASS Plugin initialization complete
2019-02-14 14:48:44.735217 INFO Starting Dashboards
2019-02-14 14:48:44.758682 INFO API is disabled
2019-02-14 14:48:45.506738 INFO AppDaemon: HASS: Connected to Home Assistant 0.87.0
2019-02-14 14:48:45.508675 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2019-02-14 14:48:51.158044 INFO AppDaemon: HASS: Connected to Home Assistant 0.87.0
2019-02-14 14:48:51.159453 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds

Could it be to do with the lines…

WARNING: You are using an non-recommended Home Assistant URL!
WARNING: Setting the "ha_url" option in your AppDaemon config to
WARNING: "http://hassio/homeassistant" is recommended!

Help. I am lost.

P.S. I have forwarded the port 8123 through my router and the address i normally connect to HA is https://mysiteremoved.duckdns.org:8123

you use hassio.
so you shouldnt change the ha_url
hassio also takes care of tokens.
and you dont need API pasword anymore (unless you are on a old homeassistant version that doesnt have tokens)

so replace the url with http://hassio/homeassistant
add token: something

and it should work.

Spot on Thankyou. Worked first time!

1 Like