Node-red-contrib-unifi

The latest version works for me now :slight_smile:

I can disable one AP

image

And I can re-enable it

image

You need to find your device id - which I did using

image

And looking thru the debug

this is the flow I used

[{"id":"9ad545ba.b15c98","type":"Unifi","z":"2d70b503.8d17ca","name":"","ip":"192.168.0.23","port":8443,"site":"default","command":"70","unifios":false,"x":570,"y":200,"wires":[["73a654d8.077bfc"]]},{"id":"82ce8c6b.537fb","type":"inject","z":"2d70b503.8d17ca","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":200,"y":200,"wires":[["cb181b81.fbdb18"]]},{"id":"73a654d8.077bfc","type":"debug","z":"2d70b503.8d17ca","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":790,"y":200,"wires":[]},{"id":"cb181b81.fbdb18","type":"function","z":"2d70b503.8d17ca","name":"disableAP","func":"msg.payload = { command: \"disableAP\" , \"device_id\" :\"5ed7b5f87ede6f55984e86c0\"}; return msg;","outputs":1,"noerr":0,"x":380,"y":200,"wires":[["9ad545ba.b15c98"]]}]