OH3 Semantic units

Some temperature-sensors are displayed correctly with units - some are without units and this one is displayed with unit in list-view and rounded without unit in cell-view:



Where is this behaviour configured?

Michael

I just opened an issue for that.

1 Like

Metadata -> Set State Pattern

1 Like

I understand that the unit is automatically displayed if the type is set correctly.

You need to add pattern in state description.
%.1f °C

1 Like

Your example on github is showing a KNX thing, but the KNX binding seems not to support UoM, so units cannot be shown automaticaly.
@mashborn, could this be se same for your issue ?

I’m using temperature sensors of knx, enocean, zwave etc.
Except knx all of them work automatically - so it seems that you’re right that it depends of the undelying thing/binding.

1 Like

Thanks @mashborn, so we narrowed it down to be an issue with channel definitions in KNX binding.
Clearly not a UI bug :wink:

1 Like

Do we really have to set the %.1f °C to every KNX temperature item? By the way this leads to different outputs. KNX does output e.g. 23,2°C and an automatically formatted item does show 23.2°C.

Bildschirmfoto 2021-01-23 um 23.17.18

Is there a nice solution for that? This is quite messy. :slight_smile: