zachcheatham / ha-omada

Home Assistant TP-Link Omada Integration
195 stars 28 forks source link

POE Switching #27

Open Elespecia opened 2 years ago

Elespecia commented 2 years ago

I might be out on thin ice requesting features but one major feature would be to have the POE-ports as binary switches. https://community.tp-link.com/en/business/forum/topic/104614 Gotta learn coding so I can contribute for real.

erwinvana commented 2 years ago

I second this request.

baylanger commented 2 years ago

@zachcheatham is your switch for sale? I’m waiting for mine, back order 😂

I haven’t checked the code of this project yet, I’ve figured I’d do that when I get my switch. It might be very simple to add. Not sure how busy @zachcheatham is these days but he offered to help. If you have free time and know what you’re doing, he can likely work with you.

baylanger commented 2 years ago

@Elespecia sorry I tag you… instead of @zachcheatham

Updated ☝️

ElStupid commented 2 years ago

Really would love that too. To manage energy consumption while I'm away or asleep, I would like to be able to switch off AP's. Keep up the good work @zachcheatham !

ZdenekM commented 2 years ago

Also might be useful to reboot or recover unreliable devices like Chinese cameras... So far, I have to call poe recover from Omada Controller manually but it would be great if HA can do it for me :)

zachcheatham commented 2 years ago

I would love to add this feature, but I do not have an Omada switch in my network to test with. If anyone with a switch wants to take on this feature, it would be much appreciated.

wuppiwuppi commented 2 years ago

Hi, i got HA and your add-on in debug mode running. Now looking into the API "Omada_SDN_Controller_V5.0.15 API Document" it seems that it is not possible to set the "port override -> poe on / off" option via the api? The only option that I can find in the API is editing a port profile, which will affect all ports with that profile.

Also: all that homeassistant stuff is a lot more complicated than expected O_o

star3141 commented 1 year ago

Hi!

I would love that feature too. Alternatively, I am trying to figure out how to do that by means of SNMP but, unfortunately, without success at the moment.

tensiondriven commented 1 year ago

Forgive me for asking a question unrelated to implementation of the specific feature; I'm curious, what is the use case for wanting to turn off power to a PoE port? I've never run into this use case, nor can I think of one... surely im missing something

baylanger commented 1 year ago
  1. Save Energy
  2. Potentially increase life expectancy of PoE port, switch's ACDC power adapter and PoE devices.

. security cameras, indoor or outdoor are not always needed 7/24. . outdoor / far / office wifi spot not needed at night . VoIP phone, not at night either - only after I had my coffe :p . any devices powered on via PoE over ~5-24/VDC (small hubs, IoT, RasberryPi, etc)

With price of electricity and cost of switches/devices, seems this would be a nice green option to have.

That said. I have 2 Netgear switch, the last one I bought was a Pro. There's no API or console access. I started to looking around at options that can allow me to do it. My current fallback is a Cisco 300 Series and can do it over ssh.

My dream is to have home-assistant call an API to get the status of the PoE for each port and be able as well to control them.

baylanger commented 1 year ago

Can also be useful if a device becomes unresponsive (ping) .. or unstable video stream from camera/bad image...

My router (mikrotik) facing my ISP is powered up as well over PoE. Currently anything on PoE that freezes, it's faster to go downstairs then to ssh.

wuppiwuppi commented 1 year ago

Yes - if a PoE powered RaspberryPi or other device becomes unresponsive -> being able to power cycle it would be nice.

For me it is a power-saving issue.

TommySharpNZ commented 1 year ago

This is pretty much the one feature of the "official" Omada integration at the moment. Works well so I have both integrations loaded :-)