Isaksson / node-red-contrib-unifi

MIT License
52 stars 20 forks source link

disable Wlan #94

Closed alexte19 closed 1 year ago

alexte19 commented 1 year ago

Hi,

I use node red v3.0.2. If I try to use the disableWlan command it does not work. wlan ID is correct, because if I try it with setWLanPassword it's working.

How can I disable the wlan via node red?

Regards Alex

Isaksson commented 1 year ago

Hello. I just verified this command and it worked for me, what is the exact command that you use and do you receive any output?

alexte19 commented 1 year ago

Hi, I use the following: msg.payload.command = disableWlan msg.payload.wlan_id = 6210146a3aa0f2038f8f1b00 msg.payload.disable = true

And writing this I found the issue. msg.payload.disable was set as string, I changed it to boolean and now it's working.

Isaksson commented 1 year ago

Good that its working now.