Appdeamon stopped working after duckdns cert auto updated

All my Appdeamon applications have suddenly stopped working. At first, I thought it might be the 0.74 update. I have restored to the back to 0.71 . The only thing that has changed in the cert renewed yesterday. Whenever I run any appdaemon application I get the following error

File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 590, in worker
    self.sanitize_state_kwargs(app, args["kwargs"]))
  File "/config/appdaemon/apps/LRSelector.py", line 27, in lrselect
    self.turn_off(ent)
  File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 22, in func_wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 345, in turn_off
    self.call_service("homeassistant/turn_off", **rargs)
  File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 22, in func_wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/appdaemon/plugins/hass/hassapi.py", line 457, in call_service
    r.raise_for_status()
  File "/usr/lib/python3.6/site-packages/requests/models.py", line 939, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://hassio/homeassistant/api/services/homeassistant/turn_off
2018-07-24 19:44:13.442745 WARNING AppDaemon: ------------------------------------------------------------

This is my appdeamon.yaml

secrets: /config/secrets.yaml
log:
  logfile: STDOUT
  errorfile: STDERR
appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  cert_verify: false
  plugins:
    HASS:
      type: hass
      ha_url: http://hassio/homeassistant
      ha_key:  autogenerated by addin
hadashboard:
  dash_url: http://127.0.0.1:5050
  dash_dir: /config/appdaemon/dashboards

I have uninstalled and reinstalled duckdns and appdeamon . I have reinstalled very old versions. Always the same error. My system has been stable for months. I have not changed anything

Any ideas?

Panic over . Have changed my ha_url to use the external duck dns name . Have local DNS to spoof external IP to internal . Removed the cert_verify now working OK . Strange it has been working all this time

secrets: /config/secrets.yaml
log:
  logfile: STDOUT
  errorfile: STDERR
appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  plugins:
    HASS:
      type: hass
      ha_url: !secret http_url
      ha_key: !secret http_password
hadashboard:
  dash_url: http://127.0.0.1:5050
  dash_dir: /config/appdaemon/dashboards

that is a problem in the hassio addon.
there has been an update from “the supervisor” that caused that problem.

read about it in this topic: