Battery Level Conversion for Smart Devices

Hi everyone! I’m trying to figure out how to convert the battery voltage readings from my smart devices into a percentage format. I have a mix of devices, some of which report battery levels as a percentage, while others show the actual voltage. For example, my Netatmo devices show battery levels as 0-100%, which is really helpful, but my HomeMatic devices only show the remaining voltage, which ranges from 0 to 3.2V. I’d love to display all battery levels in the same format for consistency. Does anyone have experience with this kind of conversion in openHAB? I’ve tried searching for solutions, but I’m not quite sure how to set it up. Any advice or tips would be greatly appreciated! Thanks in advance, and happy Easter everyone! :rabbit: