How to load/save a custom DDF?

Hello, so the working mode will depend of the OS you are using, but I think the better way is not using the “load” feature.

All DDF provided directly with deCONZ typically reside in /usr/share/deCONZ/devices/ on a Linux system and are loaded first. However, files residing in the home directory of the user running deCONZ (e.g. /home/<DECONZUSER>/.local/share/dresden-elektronik/deCONZ/devices) will override the pre-packaged files to allow users to amend and keep their own files if desired.

So on classic OS, you just need to create a text file called what_you_want.json with the DDF contain in a “devices” folder.
Them restart deconz, long story but it’s the fastest way to be sure the DDF will be loaded.
Them just re-include the device.

On next time, you can use the editor to edit the DDF, and use the fonction “hot reload” but the problem is for battery device that can’t react immediatly.

If you are using HA, you have an hidden persistent folder How to add/edit a DDF on Home assistant using text editor?

One time the DDF is on the good folder it need to be used automatically when you make “edit DDF”, else there is a problem in the “device check” or a typo in the DDF

1 Like