Here is my setup for AppDaemon, under the folder “appdaemon” there is a folder named “apps”. I am creating a new folder for each app and each app specific folder contains two files:
The above code works if I put the actual values of emails, password and DSN but my setup seems to be not able to read “secrets.yaml”. Here is the actual error code from logs:
ValueError: ecowater_dsn not found in secrets file
I think you can only use secrets in the appdaemon.yaml file. Otherwise try to put an additional secrets.yaml file in the apps directory and see if this resolves the issue.
I reported the above details on github and got this message
Franck Nijhof <[email protected]> Unsubscribe
3:02 AM (2 minutes ago)
to hassio-addons/repository, me, Author
This is not the add-on repository, secondly, add-ons wrap software. Please report your issue with AppDaemon itself with the AppDaemon project.
@frenck I’ve no idea what it means as I am not a programmer, I am a DIY enthusiast aspiring to be a geek one day Please ignore if the details were not relevant, I think I saw a problem so reported it and that is all.
You reported the issue on the add-on, but you need to report the issue in the repo of appdaemon.
The add-on is only a wrapper for the app, so that it can be used with Home Assistant easily (most configuration is done for you by the add-on).
and it should also not be on the appdeamon github.
because it works.
you got 2 ways to use secrets
you use a secrets file in the appdaemon configuration area. just using
secrets: secrets.yaml
will do in that case.
you use another secrets file. (for example HAs secret file) to make that work you need to make 2 things sure:
a) provide the COMPLETE path to the file (or else AD doesnt know where the file lives)
b) make sure that the filerights from the file are so that AD is allowed to read them.
i dont use hassio, so i dont know the exact path from the HA secrets file (not a relative path) but im pretty sure that its not /config
im also not sure if AD has rights to read the secrets.yaml file from HA, but that is no concern from AD, but something that is part from HA.
to conclude: its working, but you are doing something wrong or HA has disabled it for you.
by looking at the complete directory structure from the HD/SD/SSD that your installation is on.
i dont know how and if its possible in hassio/hassos though