Hassio 0.82.2 Appdameon won't connect

Have just upgraded to 0.82.2 after missing a few releases and I know the api password has been deprecated.
I have followed the steps inthe docs re-setting up long life token. But I am gettingthe following erros

018-12-04 18:25:07.412060 INFO SIGTERM Recieved
2018-12-04 18:26:01.941814 INFO AppDaemon Version 3.0.2 starting
2018-12-04 18:26:01.943272 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-12-04 18:26:01.950549 INFO AppDaemon: Starting Apps
2018-12-04 18:26:01.972995 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-12-04 18:26:02.551458 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-12-04 18:26:02.553952 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-12-04 18:26:02.556112 INFO Starting Dashboards
2018-12-04 18:26:02.605264 INFO Starting API
2018-12-04 18:26:02.622758 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-12-04 18:26:07.633921 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-12-04 18:26:12.643860 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-12-04 18:26:17.654411 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-12-04 18:26:22.664855 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-12-04 18:26:27.675312 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds


my appdaemon.yaml is as follows

    secrets: /config/secrets.yaml
    log:
      logfile: /config/logs/info.log
      errorfile: /config/logs/err.log
      accessfile: /config/logs/access.log
      logsize: 100000
      log_generations: 4
    appdaemon:
      threads: 10
      api_port: 5000
      api_ssl_certificate: /ssl/fullchain.pem
      api_ssl_key: /ssl/privkey.pem
      app_dir: /config/appdaemon/apps
      plugins:
        HASS:
          type: hass
          ha_url: https://192.168.0.195:8123
          cert_path: /ssl/privkey.pem
          cert_verify: true
          token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI3MTRiNzZiZDYwMzg0MzZmOTBhMGVjMDQxOTRkNjQ0MiIsImlhdCI6MTU0MzkwMjA5MywiZXhwIjoxODU5MjYyMDkzfQ.1JcGnmiAMFJ
    hadashboard:
      dash_url: http://127.0.0.1:5050
      dash_dir: /config/appdaemon/dashboards
      dash_ssl_certificate: /ssl/fullchain.pem
      dash_ssl_key: /ssl/privkey.pem

This was working prior on hassio 0.78. but I had the Ha_key value there and API password enabled. the ha_url is accessible via the browser so no issues there

thanks

Can you post your http section from your configuration.yaml file? the line

ha_url: https://192.168.0.195:8123

looks a bit strange since the s in https means that your port should be 443.

Also, better not to post your token.

here is my http: in config.yaml

  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  base_url: !secret baseURL

base_url is my duckdns domain name without http ie xxx.duckdns.org

I made some mods to appdaemon.yaml

secrets: /config/secrets.yaml
log:
  logfile: /config/logs/info.log
  errorfile: /config/logs/err.log
  accessfile: /config/logs/access.log
  logsize: 100000
  log_generations: 4
appdaemon:
  threads: 10
  api_port: 5000
  api_ssl_certificate: /ssl/fullchain.pem
  api_ssl_key: /ssl/privkey.pem
  app_dir: /config/appdaemon/apps
  plugins:
    HASS:
      type: hass
      ha_url: !secrets ha_url
      cert_path: /ssl/privkey.pem
      cert_verify: false
      token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJkMWYzNDg3Y2QwNjM0OTk0

the ha_url is https://xxx.duckdns.org

The token has been modified,

Noticed a message in the error file suggesting i use

ha_url: http://hassio/homeassistant

in appdeamon.yaml
changed that and now it works

1 Like