unifi2mqtt
unifi2mqtt copied to clipboard
force provision option for unreliable wifi ?
@hobbyquaker ,
unifi.post('upd/wlanconf/<wlan_id>', {enabled: false}).then(console.log);
Is it possible to support a force_provision option for the case when the unifi controller fails to reliably enable/disable wifi on all devices that it controls. Some of the time, some of the AP devices, never receive the provisioning command from the unifi controller to enable/disable wifi. What fixes it is a force_provision on the device that failed to go in the PROVISIONING state. Have you seen this unreliable behavior in the controller not honoring the command for wifi on some of the APs in a multi-AP wan group scenario?
The turning on/off led seems much more reliable
The force_provision is on a per AP mac address basis and looks something like this
curl -X POST 'https://example:8443/api/s/default/cmd/devmgr' -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary '{"mac":"78:8a:20:4b:56:6d","cmd":"force-provision"}' --insecure
sure, no problem. will include that command in the next update.