Using configuration packages with AppDaemon?

I’m in the process of converting my configuration files to a package-based structure, and I’m wondering if there’s any way to include AppDaemon apps in that. So if I have, for example, a package for a specific room, with a directory holding all the elements of the room, it’d be nice to also have the AppDaemon apps (or at least the configuration files for those apps) in the same directory.

Any way to accomplish this?

You can organize things any way you want in your apps directory:

https://appdaemon.readthedocs.io/en/latest/APPGUIDE.html#configuration-of-apps

but they have to be in /config/apps, right? I’d like to be able to put them in something like /config/packages/livingroom. Is that possible?

I’ve never tried this, but it looks like you can define a custom app_dir in the AD configuration:

Optionally, you can place your apps in a directory other than under the config directory using the app_dir directive.

e.g.:

app_dir: /etc/appdaemon/apps

https://appdaemon.readthedocs.io/en/latest/CONFIGURE.html

1 Like

However, if you’re using packages in your configuration.yaml, it might cause issues if your package strategy attempts to pull your AD YAMLs into your config file. Personally, I’d advise keeping the two separate.

1 Like

That’s a good point, it totally would do that. Hmm…