MarkGodwin / tplink-omada-api

MIT License
16 stars 12 forks source link

Add PoE control on gateways and PoE cli command #38

Closed MarkGodwin closed 6 months ago

MarkGodwin commented 6 months ago

Thanks to @dkriegner, we now know what the API looks like to control PoE settings on gateway ports (e.g. ER7212PC).

This change adds a function to modify the setting on a one gateway port at a time, to match the API for switches. This might not be the most efficient way if we want to control lots of ports at the same time, but it fits the HA use case of having a toggle switch for each port.

I've also added a poe command line mode that allows PoE control and state reporting for gateways, switches and access points.