I have an OVMS module connected via MQTT that reports the car battery in Volts - and I would like to have it that way. Since some upgrades of Home Assistent Core (I am now on 2025.4.1) I am getting deprecation warnings that “V” is not a valid unit of measurement for entity type “battery” - what should I change? Make the car battery some other entity type? Which one would support volts as UOM?
Or do I need to do some math to calculate a percentage? But I really would like to see the volts, it goes up to almost 15V when charging and down to 11.7V which is right before the sensor shuts down to save the battery from deep discharge.
Any good way to achieve that?
Thanks!
Use device class voltage
and specify unit of measurement of V
1 Like
Thank you @mekaneck
I was looking in the wrong direction, apparently. There are a lot of device classes that look like generic UOM which I never saw, and was distracted by millions of battery examples in the web. Again thank you for pointing me in the right direction.