All configuration is done with the in yaml files. For clarity we recommend to have one yaml file for each app, named the same as the csharp file but you can configure as many apps and types in one to many yaml files if that is prefered.
Application instance configuration
Example below instance an application with id
light_manager_kitchen and sets a configuration named
the_light to a string used by the
Inside the app the
the_light setting is automatically provitioned to the
TheLightproperty if provided in the class. NetDaemon converts python style (used in Home Assistant) to c# style property names. You could use the name
the_light for the property too.
Secrets lets you store special variables that are global in the tree scope of the app.
secrets.yaml can be excluded in
.gitignore to makse sure sensitive data is not pushed to the git repo.
This is how to use secrets. Make any file called
secrets.yaml. The application will use the configuration in the first secret file it finds in the path.