Hi everyone, I’ve been working on setting up a battery monitoring system for my lead-acid battery, and I wanted to share my experience and some tips I’ve picked up along the way. I’ve got a 12V lead-acid battery, and I’m using MQTT to receive the voltage readings. Initially, I noticed that displaying the voltage directly wasn’t as helpful as I hoped, so I decided to transform it into a percentage to make it more intuitive.
Here’s what my current setup looks like:
Number Gate_Battery_Level “Battery [%.0f%%]” (Gate, oroBattery, TimeoutGroup) {mqtt=“<[eve:oro/gate/reading:state:JS(12v.js)]”, expire=“4h”}
Number Gate_Voltage “Battery [%.2fV]” (Gate) {mqtt=“<[eve:oro/gate/reading:state:default]”, expire=“4h”}
My goal is to use the percentage for alerting rules and the battery icon, while displaying the actual voltage. I’d love to know if there’s a way to achieve this without duplicating the MQTT source. Ideally, I’d like Gate_Battery_Level to be derived directly from Gate_Voltage. Does anyone have any suggestions or solutions for this?
Another thing I’ve been exploring is how to handle the MQTT sources more efficiently. I’ve heard that using a single raw reading and then deriving other values from it can help reduce redundancy. If anyone has tips on how to streamline this process, I’d be really grateful!
I’d also love to hear about how others have set up their battery monitoring systems. Do you display voltage, percentage, or both? How do you handle alerts and notifications? Any additional insights or experiences would be fantastic!
Looking forward to hearing from you all!