i just migrate my openhab 2.5 instance to OH3, the OH2.5 run many years and i did not used the unit feature consequent. the migration ow should be a good reason to introduce it and use it.
i have some modbus devices directly supported by the modbus / sunspec binding and i have some device not directly supported. for the not directly supported devices i use the generic modbus bindings/things (Poller / Data)
Modbus/Data maps the Modbus Value to different datatyps, e.g. Number ho do i transform that to Number:Power ?
Without that transformation my group aggregations based on Number:Power seems to fail
I already searched in the forum more or less found mqtt transformation, they are support by the GUI, how do i add the dimension to value with a transformation script ?
Value → Value Unit
350 → 350 Watt and how to define the result as Number:Power ?
Does someone has already such a script, does not seem to be compicated or point my to the right place ?
thanks a lot!