Assumptions confirmed after doing a HA deCONZ addon restart:
- Original file (
/usr/share/deCONZ/devices/blitzwolf/bw_shp13_smart_plug.json) is overwritten/reset to default
- Custom file (
/data/.local/share/dresden-elektronik/deCONZ/devices/bw_shp13_smart_plug_MyCustomConfig.json) still exists and is untouched (timestamp unchanged)
Additional confirmation:
- Selecting “Edit DDF” in deCONZ VNC GUI (right click) opens my custom config DDF file.
- Changes applied in custom config are (still/again) active (update interval is roughly 1 minute instead of default 5 to 8 minutes)
Therefore I’m fine for the moment, will test/check if all this behaves the same when updating the deCONZ addon.
Another final information regarding the initial question (how to edit a DDF on Home Assistant):
- Login via SSH to HA
- Login deCONZ docker container:
docker exec -it addon_core_deconz bash - Install a text editor e. g. nano for editing files on the CLI:
apt update; apt install nano(note: this will be undone once the container is restarted or updated) - Edit your DDF file with e. g.
nano /usr/share/deCONZ/devices/blitzwolf/bw_shp13_smart_plug.json - Don’t forget to “hot reload” the DDF changes using deCONZ (VNC GUI)
See also Permanent changes in deCONZ addon/container (survive restart / update) - Home Assistant OS - Home Assistant Community with a lot of additional/detailed information.