Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PoE sensor #8

Open
andyboeh opened this issue Sep 9, 2022 · 1 comment
Open

Support PoE sensor #8

andyboeh opened this issue Sep 9, 2022 · 1 comment

Comments

@andyboeh
Copy link

andyboeh commented Sep 9, 2022

I have two OpenWrt-based managed switches with 24/48 PoE ports. I would like to monitor the power consumption within Home Assistant, thus it makes a lot of sense to integrate them into this project.
My switches are Realtek-based and require the realtek-poe package to support PoE. This package provides a ubus call poe info command to get, amongst others, power statistics.

Is this enough to create a HA sensor for it?

Thanks

@AlexStragies
Copy link

Recent versions of OpenWrt include versions of realtek-poe, that can manage the POE-output per port (ubus call poe manage '{ "port": "lan4", "enable": false }'. Those ports could thus be displayed as switches.

I currently use a hacky shell-script to inject/read messages from/to MQTT to control POE-Power on OpenWrt devices from HA, so supporting this use-case in hass_openwrt would cut down on the crude hacks I currently maintain for my environment.

These next few days I'm a bit busy, but I'll look into maybe coding a (rough prototype) PR starting October. If anyone gets around to it before me, I'd be happy to test anything on some of my non-prod devices.

Oh, and thanks already for having created this custom_component. It's already very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants