Enable/Disable PoE
It hasn’t happened before, which I guess shows why there’s not a built in function for this in most control systems, or even in most switches, but I needed to include the ability to toggle PoE power per switch for a few devices.
When you toggle the button for one of the ports it will establish an SSH connection to the switch, navigate the CLI, and enable/disable the PoE before logging out of the switch. As every managed switch may be slightly different it’s not worth turning this into a proper plugin as some code may need tweaking for each switch it’s implemented with. It’s currently working flawlessly with the TP-Link JetStream PoE switch in my test rack.