Isaksson / node-red-contrib-unifi

MIT License
51 stars 20 forks source link

Disable a port on a UniFi Switch? #64

Closed curana closed 2 years ago

curana commented 2 years ago

Hi,

Is it currently possible to disable a specific switch port with this node?

Thanks for your work!

Isaksson commented 2 years ago

Hello. You could use this command to change the port profile.

setPortProfiles: Set overrides for multiple ports of a device { command: "setPortProfiles", device_id: "24 char device id", port_overrides: [ {"port_idx": 1, "portconf_id": "id of the port profile", "name": "friendly name of the port", "poe_mode": "off|auto" }, ... ] }

curana commented 2 years ago

Ok, I will try it this way.

Thank you!