Olen / lovelace-flower-card

Lovelace Flower Card to match the custom plant integration
https://github.com/Olen/homeassistant-plant/
189 stars 29 forks source link

Battery status #46

Closed mykm203 closed 1 year ago

mykm203 commented 1 year ago

Soil sensor reports battery status in Volts, not in percentage. So even with full charged battery status is in the red

Olen commented 1 year ago

That does not sound like wht is expected in HA. What kind of sensor is this, and what integration are you using to get the data? It should probably be reported as a bug/feature request towards that integration so they can implement a proper SOC-sensor.

mykm203 commented 1 year ago

Ecowitt weather station / Soil moisture

Olen commented 1 year ago

Seems like that integration for some reason reports battery status in voltage, as you say. You would probably need to create a template sensor to convert from Volts to SOC (maybe someone has already done that?) The flower card (and plant integration) is not the right place to do that, at the convesion from voltage to soc will be different for different devices.