tomaae / homeassistant-openmediavault

OpenMediaVault integration for Home Assistant
Apache License 2.0
109 stars 15 forks source link

add battery level and charger status sensor #120

Closed Pro-Control closed 1 year ago

Pro-Control commented 1 year ago

Is your feature request related to a problem? Please describe.

I have a laptop running OMV Its always on AC power So I need every 15 days to switch the power adapter off to let the battery level be at 20 % and turn it on again to save battery lifespan

Describe the solution you'd like

I do circuit control relay to do this through ESPhome By HA so if passable add a sensor to read battery level and charger status it is nice to create HA automation to do this,,

The most important sensor is

capacity status

all data you need it can be found in
/sys/class/power_supply/BAT1

tomaae commented 1 year ago

This is API cased integration, so anything outside of API is not possible.