Closed mdeweerd closed 1 year ago
Command line options will be rolled into https://github.com/zigpy/zigpy-cli/pull/2. I'm planning on exposing all of the configurable settings in https://github.com/puddly/zigpy/blob/b350c3298a907559a343547c1d86e5e9c2b0bf23/zigpy/state.py#L32-L68:
$ RADIO=/dev/serial/by-id/...
$ zigpy -vv radio znp $RADIO change --channel=11 # Changes channel
$ zigpy -vv radio znp $RADIO form --channel=11 # Forms a new network
Are all the needed parameters to set a channel in order to allow changing Zigbee channels now in place in zigpy-cli/zigpy?
Does it send out a message to all devices to notify them about the channel change so they should try to switch to that channel?
PS: I know channel change should not be done on a whim but would love a UI setting in the ZHA integration as a feature ;)
The change-channel
command now exists. You can also change the channel by performing a backup, editing the JSON, and then a restore.
Thanks for the update.
However, I opened this issue with regards to the "form" command, not per se to change a channel already set.
In order to force the channel, I updated the 'form' function like this:
I suggest to add a command line option allowing to force the channel or channel list.