Use this repository as template when developing apps for NetDaemon. This template is a good starting point for your development environment. It has pre-built structure both for building apps and unit test them. Unit tests fake objects are alpha and the fake API can be changed.
- Make new repository with this repo as template
- RENAME
src/_appsettings.json
tosrc/appsettings.json
. Edit the appsettings.json file to provide details about how to connect to Home Assistant. You will need a long lived token, ip, port. - Run dotnet restore in the terminal
- Add and edit your apps in the
/src/apps
folder. There are a few code-snippets you can use. - Copy the edited
/src/apps
to the foldernetdaemon/apps
under your Hass.io config folder. - Install NetDaemon runtime using add-on or run a docker container. Please see https://netdaemon.xyz/docs/started/installation for details how to run the daemon.
For detailed information about using netdaemon please see https://netdaemon.xyz.
Each app should have it´s own subfolder under the apps
folder. So rename the HelloWorld
folder and HelloWorld.cs
and HelloWorld.yaml
according to your app. The class name should also be renamed to the same unique app name. We also recommend using namespaces and fully qualified names like the sample included in the template.
- If you have issues or suggestions of improvements to this template, please add an issue
- If you have issues or suggestions of improvements to NetDaemon, please add an issue
Please join the Discord server to get support or if you want to contribute and help others.
ICON: Attribution: chris 論