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

The value of permitjoin is ignored when doing a PUT request to `/api/<apikey>/config`

Open bram-mkse opened this issue 3 years ago • 0 comments

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

  1. Make a PUT request to /api/<apikey>/config with a request body of {"permitjoin": 70}.
  2. Observe that the network is opened not for 70 seconds, but for whatever the value of networkopenduration in 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

bram-mkse avatar Jul 30 '22 08:07 bram-mkse