deconz-rest-plugin
deconz-rest-plugin copied to clipboard
The value of permitjoin is ignored when doing a PUT request to `/api/<apikey>/config`
Describe the bug
The value you pass in as the permitjoin value in the JSON body in a PUT request to /api/<apikey>/config is completely ignored. The value of networkopenduration is used instead. This is due to the functions startSearchLights() and startSearchSensors() both modifying the gwPermitJoinDuration value to the gwNetworkOpenDuration value.
Steps to reproduce the behavior
- Make a PUT request to
/api/<apikey>/configwith a request body of{"permitjoin": 70}. - Observe that the network is opened not for 70 seconds, but for whatever the value of
networkopendurationin the config is.
Expected behavior
The network is opened for 70 seconds.
Screenshots
Environment
- Host system: PC
- Running method: Ubuntu
- Firmware version: 0x26780700
- deCONZ version: 2.16.1
- Device: ConBee II
- Do you use an USB extension cable: no
- Is there any other USB or serial devices connected to the host system? A mouse, a keyboard and another ConBee II configured to be used with ZShark.
deCONZ Logs
There are no useful deCONZ logs for this.
Additional context
The issue is fixed by #6250