Isaksson / node-red-contrib-unifi

MIT License
51 stars 20 forks source link

Feature Request: Toggle PoE Status of a Port #67

Closed reibuehl closed 2 years ago

reibuehl commented 2 years ago

It would be great to be able to toggle the PoE status of a port to reboot a hanging PoE powered device.

ostat commented 2 years ago

you can do that with the setPortProfiles command.

image

Function content is

//Change a port PoE status of Dome Camera
msg.payload = 
{
    command: "setPortProfiles",
    device_id: "<switch device id>", 
    port_overrides: 
    [ 
        {
            "port_idx": 12, 
            "poe_mode": "off"
        }
    ]
};

return msg;

There is more info here #34