deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

Save the Source Routing enabled-/disabled state in deconz

Open joggs opened this issue 4 years ago • 10 comments

Feature request type

Save the Source Routing enabled-/disabled state in deconz, so you don't have to enable it at each restart of deconz

Description

The enable/disable setting for Source Routing should be saved in deconz so you don't have to enter deconz and enable it each time you restart deconz. This is important as this feature has vastly improved the stability of the zigbee network.

Considered alternatives

Additional context

joggs avatar Jan 06 '21 15:01 joggs

This should already be the case. The related setting can be found in config.ini file.

[source-routing]
enabled=true
max-hops=4
min-lqi=120

So manually enable it again shouldn't be needed.

However there is a bug in saving and restoring already discovered source routes, so often after a restart the routes need to be discovered again, this is under investigation.

manup avatar Jan 06 '21 18:01 manup

Ok, I am running the deconz docker container in unraid and after each restart, source routing is disabled again. I will try to edit the ini file and see what happens.

Den ons 6 jan. 2021 19:17Manuel Pietschmann [email protected] skrev:

This should already be the case. The related setting can be found in config.ini file.

[source-routing] enabled=true max-hops=4 min-lqi=120

So manually enable it again shouldn't be needed.

However there is a bug in saving and restoring already discovered source routes, so often after a restart the routes need to be discovered again, this is under investigation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4115#issuecomment-755469813, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLJXPBRRJLCCK7ACHY62DSYSSJZANCNFSM4VXVFK7Q .

joggs avatar Jan 06 '21 18:01 joggs

I had no [source-routing] section in config.ini. If I alter the source routing settings in deconz and restart deconz, I still do not have a [source-routing] section in config.ini. However, if I add your [source-routing]-section manually to the config.ini and start deconz, the settings are applied correctly. If I then adjust the settings from within deconz, the settings are never updated in config.ini, so I guess there could be a permission problem or something in the code, updating the settings file.

v: 2.09.00 / 2020-12-23 fw: 26680700

joggs avatar Jan 07 '21 16:01 joggs

Indeed looks like perhaps the file permissions aren't correct.

Can you please check them via ls -l config.ini

manup avatar Jan 08 '21 01:01 manup

I have tested different access levels while testing, right now chmod 777, and actually, things are written to the config file, but not to that section. I am not 100% clear about how this unraid/docker version is handling things, as the config.ini file is located in the docker at /root/.local/share/dresden-elektronik/deCONZ/config.ini, but in unraid, you have a fileshare called appdata, where persisting settings are stored, as a docker upgrade means deleting the whole docker container and then installing it again as you probably know, so there is also a config.ini in this appdata share that looks different than the the one in /root/.local/share/dresden-elektronik/deCONZ , so not sure what happens behind the scenes here, but the changes I do to the source-routing part in deconz are not updated in any of these two config files.

joggs avatar Jan 08 '21 12:01 joggs

I discovered this bug too in the UI of deCONZ, usually after updating deCONZ (HA Supervisor addon):

  1. Enable Source Routing (set check mark)
  2. Update/Restart deCONZ
  3. Check deCONZ GUI: -> expected: source routing is enabled and check mark is still set -> reality: source routing is enabled but check mark is removed

bcutter avatar Feb 18 '21 19:02 bcutter

I can't find any config.ini. Have the same problem here. Should be nice if the checked "enable source routing" would stay visible in the gui. Now, I have no idea if it's enabled or not.

stefanuytterhoeven avatar Mar 30 '21 13:03 stefanuytterhoeven

if i manually edit config.ini to enable and configure the source routing section, upod reboot the file is "reset" just as if deconz is overwriting it.

leonardpitzu avatar Jul 11 '21 09:07 leonardpitzu

Had the same issue recently. Part within config.ini was missing as well.

Probably I started deCONZ as sudo once, as the config.ini had rights for root:root. Changed it via chown to my user and works fine now.

Floyer007 avatar Feb 19 '22 21:02 Floyer007