openHASP icon indicating copy to clipboard operation
openHASP copied to clipboard

Battery Level on M5Core2

Open Aaroneisele55 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. I can't see the battery level of my M5Core2 in Home Assistant like I could with e.g ESPhome.

Describe the solution you'd like I want the battery level of the M5Core2 to be available:

  • from pages as a variable (e.g %battery%) for use in e.g labels
  • in the HA custom component as an entity for automations and displaying it on the HA dashboard I see that there is already a library for the AXP192 included in openHASP (needed for the Core2's Display control) so it would be easier to implement Describe alternatives you've considered I could flash it with ESPhome, but then I'd have to implement all the display part (and the other awesome stuff openHASP does out of the box) myself, which is exactly why I chose openHASP instead of ESPhome. Also, openHASP has a way better power management without the need for deepsleep mode, which takes way too long (reconnect after wake-up) to be useful for what I use the Core2 for.

Additional context In ESPhome, this is already supported via custom components (not officially, but it would work)

Aaroneisele55 avatar May 28 '23 14:05 Aaroneisele55