Translating a voltage sensor into a HomeKit compatible sensor

I have an MQTT Voltage sensor in HomeAssistant which I would like to be able to include in the HomeKit integration bridge, however that doesn’t support sensors of the voltage type.

I therefore tried taking the voltage sensor value and repackaging it into a template sensor with a different unit of measurement or device class. I tried making it into a temperature value which does allow it to show up in Apple Home, but for some reason it rounds the value and loses the decimal places, which are important.

i.e. 12.25v in the HomeAssistant MQTT sensor, becomes 12.25 numeric value in HomeAssistant, but for some reason ends up 12.0 degrees in Apple Home.

Does anybody have any idea why this might be happening, or can suggest a better way of accomplishing the goal? Thanks

Did you find a solution to this?

Unfortunately not. I was trying to accomplish it as my Apple Home provides access outside the local network whereas I only have local HomeAssistant access. I figured perhaps there may be more convoluted alternative routes using NodeRED and a cloud integration such as ITTT to trigger SMS or email notifications, but it became a low priority and I haven’t revisited since I’m afraid.