In event.log the item is updated dimensionless.
Item is defined as followed (through MainUI):
The working items (which i am updating through API) are defined similar to this item. The difference is that i update them with unit “h”.
So i think i have to update the Item above with unit “h” also but i dont know how to do this within a rule.
Another item another question
I have a power meter which updates in Watts.
When i edit the stateDescription and change the Pattern from
The unit is correctly displayed as “kW”. But the value is not recalulated.
When i use
The value is recalculated an correct.
So, how to add a prefix when using %unit%?
Sorry for the many questions… I’ve just updated to OH3 and i want to do it right.
and BTW: The state description does affec the persistence. When i remove “kW” values are stored as “W”. When i re-adding “kW” then the values are stored as “kW”.
This is a little bit confusing because i thought that they are always stored as the default unit for specific QuantityType.