I’ve noticed an odd behavior with units of measurement:
My setup contains several Number items with no UoM. Thanks to a bug in openhab-android (https://github.com/openhab/openhab-android/issues/1221#issuecomment-469022874, sending UoM even when no QuantityType is specified), I’ve seen how surprisingly openhab handles posted updates when UoM are involved.
Number target "Target Temperature [%.2f °C]"
When posting “22” to this item, the item contains “22”.
When posting “22 °C” to this item, the item contains “22 °C”.
However, my rules querying the state of a number item get Kelvins returned, thus misscalculating.
I had antipiciated that openhab just skips this “°C” part and my rules continue to work.
So, is this by design or is there a bug lurking somewhere here?