There are two ways of running NetDaemon, as an add-on running under Home Assistant (previously known as hass.io) or as a docker container.
Install as a Home Assistant add-on
Add new repository URLto the add-on store.
Add the NetDaemon add-on.
If you want to use the autogenerated entities on startup set that setting to true in add-on configuration. It is off default.
- After you install it, do not start it just yet. We need to configure some stuff manually (will be improved as we come closer to release). See App Development for details.
Install as a docker container
Evironment variables you can set
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|
|efaults to info, values are (trace, debug, info, warning, error)|
|You will need to set container time zone to make the scheduler work properly|
|NETDAEMON__PROJECTFOLDER=/data use the csproject file you provides in the netdaemon folder instead of the built-in. This is for advanced scenarios where you want to run custom NUGET packages and compile with your own csproj file. Normally you would not use this.|
|Set this to |
|/data||The volume of the netdaemon folder should be mapped to |
Example docker run configuration
-p 1337:1337 is only needed if you want the admin panel
Folder structure and where to map the docker volume
~/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