Source Routing Config is not stored properly

I am running deconz on a conbee 2 using the addon of home assistant with a raspberry pi.

Recently i discovered the source routing config, which is really great and improves the stability of my network a lot.

My problem is: the config will never be stored when i either do a restart of the plugin or ha itself.

I read about a config file that i have to change, but i can not even find that file.

I also checked the code of the deconz core and found those settings are only stored on a proper deconstruction of the controller, but i cant not really debug if this is happening when restarting or not.

It would be really great to get this issue solved, as it really decreases my user experience as i have to reset the source routing on every restart and wait for the source routing discovery

The configuration from the UI should be stored in the config.ini file.
Is that file writable by deCONZ? Sometimes there are cases where the ownership is root from starting with sudo etc., might be worth to check with ls -l config.ini

The config can also be edited manually while deCONZ is not running.
For example here are my settings for enabled source routing:

[source-routing]
enabled=true
max-hops=5
min-lqi=150
min-lqi-display=0

The ha addon probably doesn’t store it in the correct storage.

From what i understand, the addon will mainly run deconz in a docker container that has a given deconz version preinstalled (addons/deconz/Dockerfile at master · home-assistant/addons · GitHub)

This is what makes it very hard for me to check and access the config file in the first place. As the other settings are picked up, i assume that either those are corretly stored in the container, and the config file is not, or the other configs are stored in a location that is mapped to the raspbees storage, whereas the location of the config file is not

The code is now changed so that source routing configuration changes are stored after a 10 second delay. This should fix the issue that configuration isn’t stored if deCONZ isn’t closed proper.

https://github.com/dresden-elektronik/deconz/commit/4d93d8ff55bc232734445eba3d751815536d0b64

Iirc, the container shouldn’t have problems with write access, this is more a problem in native setups if the file permissions are messed up.

1 Like

I found this thread because recently I have troubles with my IKEA TRADFRI LED controllers. after about 8h they start losing connection.
I copied the config.ini from the running deconz_addon container, edited the section [source-routing] on my pc and put the config.ini back inside the container at /data/.local/share/dresden-elektronik/deCONZ/config.ini
After restarting the container all changes to the config.ini went away. how to edit it so that it keeps my changes to the [source-routing] section?

So you have the same issue ? If you change the setting using deconz, wait a little and restart, the setting is reseted ?

When I use the terminal and go into the deconz-container, open the config.ini the file is reset after one reboot of the container despite my changes.
When I use deconz VNC plugin via Home Assistant I can see this (my actually settings that I changed):


I think this got me confused…

btw: It did not help with my problem, after 8 to 10 hours my tradfri 10w led drivers keep disconnecting