I am adding my homemade air sensors into OH3 (stable release). The battery voltage is an item linked to an mqtt channel with Voltage property - it seems to work properly as the “V” unit is added.
I use a JS transformation to get the battery level
var batt_level = (voltage - 3.5)/0.7;
and I define a dimensionless item
Question - why does the value still have the “V” unit as the parallel item linked to the same channel?
I cannot use use the %% label formatter, of course (it returns 1%).
Any explanation for this behavior?