I’m having a weird issue trying to set up AppDaemon. The docs say that secrets.yaml should work, and I’ve put the url and long-lived token info in there, leading to the following appdaemon.yaml:
secrets: /config/secrets.yaml
log:
logfile: /config/appdaemon/logs/appdaemon.log
errorfile: /config/appdaemon/logs/error.log
appdaemon:
threads: 10
app_dir: /config/appdaemon/apps
plugins:
HASS:
type: hass
ha_url: !secret http_url
token: !secret appdaemon_token
However, when I restart AppDaemon, it strips out the “!secret” part of the last 2 lines, giving me:
ha_url: http_url
token: appdaemon_token
Which doesn’t work.
If I just put in the url and token in plaintext directly into appdaemon.yaml, it seems to work fine.
Additionally, I noticed that restarting AppDaemon strips any commented out lines from appdaemon.yaml, which is annotying, but not critical.
Note: I found an earlier bug report where the system appeared to insert the plaintext values into appdaemon.yaml, this isn’t the same problem. This is about it stripping out ‘!secret’
Advice?