If it doesn’t break things and doesn’t lead to performance issues, I guess? (I’m no expert in this area)
Quickly browsing around it would be probably go around there, after adding the fields to the event class itself - but no idea if it’s possible at all to apply the transformation here:
Hi, since this was a common and recurring issue, I finally resorted to query the API when an item’s state with a transformation applied changes.
Here’s a summary of the changes:
There is an additional API query each time the item’s state is updated, but only when for items having a transformedState. If you have a frequent update on items with transforms you might experience some performance issues;
Dummy widgets and switches display the transformed (i.e. mapped) state if available;
The itemState (formerly itemValue) function in templates also now returns the transformed state by default, unless you set the new second parameter to true i.e. itemState('Item_With_Map', true). Use the raw state in conditions like ng-if without the transformation if possible.
Remember you need to have an openHAB version including @lolodomo’s PR, that is, snapshot 849 or newer.
I uninstalled my previous habpanel, and trye’d to update in Paper UI, but there is only 2.0.0, so I installed the 2.1.0 from your link.
But it still not showing my mapping correctly
do i need to do something more, about itemState/itemValue, I haven’t done anything to my Items only upgraded the habpanel.
In a habpanel template … if you are using that.
As I said earlier: you may have a problem not related to habpanel at all …
Do your items update in BasicUI or ClassicUI?