Feature suggestion + poll: config watcher / auto restart #18468
webbertakken
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I'm quite new to using Zigbee. Please let me know if some of what I'm suggesting does not make sense.
The challenge
When setting
permit_join: true
new devices can join. The devices are written to the config by zigbee2mqtt. Everything works really smoothly so far.However, if you want to update devices with specific settings (e.g. when calibrating power monitoring plugs) you're writing to that very same config and will need to manually restart the service after every change in order for the config to be picked up.
Suggested solution
Add an optional flag to "watch" the config.
Perhaps in a first iteration this should only watch the
devices.yaml
andgroups.yaml
files.Now when calibrating multiple devices you can go ahead and just add the values (instead of also having to restart the service after every change).
Solution 1
A crude way to do this would be to simply add a watcher that restarts the binary.
Solution 2
A more refined way (eventually) could be to make the binary able to simply watch the config by itself and diff it against current state to see what actions need to be taken.
Poll
Before anything else, let me also ask if this process is cumbersome to more people. If I'm the only one experiencing this as cumbersome there'll be little value in adding the feature :D
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions