I have a UniFi PoE switch with an outdoor wifi AP on it. Because it is getting colder outside, I want to turn of the outdoor wifi with a switch.
I found the REST calls for UniFi (authenticate, set portconfig to port…) and now I want ti implement a rule that turns the port on or off.
I’ve been searching the forum but no one seems to have done this before from the looks of it. But does anyone have an idea on how to proceed?
@denominator & @Wolfgang_S: both thanks for replying.
I can’t use the HTTP binding because it only accepts text/plain for POST commands and I need multiple steps to achieve my goal.
Writing a script was 1 of my options but I wanted something more elegant But for now a script it will be
However, if anyone else has an idea…