There are several ways to deploy your apps. You could just run the development project and set it up yourself. NetDaemon provides a convenient ways to run your apps:
- Using a Home Assistant add-on
- In a docker container
So let's set it up before we can deploy the apps to it.
Two versions are provided, release and dev. If you feel you always want the latest and greatest changes you can choose the dev build but be prepare that things break!
Make a folder structure under your Home Assistant configuration directory to use for NetDaemon apps.
Add new repository URLto the add-on store.
Add the NetDaemon add-on.
Deploy your apps in the
The standard way running your apps in add-on is just to copy the
.yaml files to
/config/netdaemon/apps and it will dynamically compile and run them. If you want to use own project with custom dependecies you will have to use the advanced deployment options. Specify the
AppSourcesetting in add-on config. If you set a
app_source: folder, the it will dynamically compile and run apps in
app_source: daemonapp.csproj it will compile and run the project in
/config/netdaemon/daemonapp.csproj with all it's dependencies. Set the
app_source: daemonapp.dll it will run the published project in
There is not way to include other dependecies in standard dynamically compiled option You will have to run the two other advanced option to include for example a external nuget package.
If you are using Home Assistant Core and not have the possiblity to run add-ons using the docker container is a convenient way to run NetDaemon apps.
Always use specific versioning tags of docker containers (not latest or dev) cause these are constantly getting new versions and things could break You can always find the latest stable version here
-p 1337:1337 is only needed if you want the admin panel
The docker container needs 3 enviroment variables to run properly.
|The host that is running Home Assistant (defaults to |
|The port Home Assistant is running on (default to |
|A Long Lived Acces Token(LLAT) that NetDaemon can use for the comminication with Home Assistant.|
|Defaults to False, set True if you want the autogenerated entities|
|Defaults to info, values are (trace, debug, info, warning, error)|
|You will need to set container time zone to make the scheduler work properly|
|NETDAEMON__APPSOURCE is used to setup more advanced runtime options. If you set a |
|Set this to |
|/data||The volume of the netdaemon folder should be mapped to |
~/netdaemon_config need to point to the
netdaemon folder. See image below. The red arrow in the example configuration below points to the folder that should be mapped to the