It depends on what you mean by that. If you want to transform the way the state appears in the various parts of the UI, set the âState Descriptionâ metadata and you can apply a transformation just like you do with the Item labels on the sitemap.
For example, here I am changing the units for a Number:Time Item to minutes and setting it to use only two decimal places.
I put my transformation in the item state metadata pattern for each channel if theyâre listed somewhere seperate. If you put the item state transformation in the group you will need to make sure you use the group state calculations in the groupâs edit screen for its child functions.
Thanks Christopher, but if the group is set to NUMBER:MAX, and the Item transformation changes from 1 to GOOD, using the Item Transformation, then that wonât work right? The group receives numbers, not strings
From my understanding yes. Because in OH2.5, we could transform in the sitemap too.
You might be able to have item transformations only in a page/widget instead.
Hi Rich,
I canât get my MAP file to work when I reference it in the Pattern window. I typed in literally MAP(rain.map):%s without any quote marks. All my OH2 map files are present in the OH3 folder.
It worked fine in OH2 and was just a transformation between the state of a contact, OPEN or CLOSED and Dry or Raining.
The map file seems to be ignored when placed into the Pattern window, BUT if I use the Options window and insert CLOSED=Dry and OPEN=Raining it does work.
Can you advise please? regards
Hi, I did indeed and have even restarted OH3 there
Also Rich, I have other complex transformations to convert wind directions to compass points and wind speeds to the Beaufort scale. These wonât even work now when pasted into the options window of the metadata. These transformations use brackets symbols for ranges of âgreater thanâ and âless thanâ âŠ] and [ ⊠So is there a bug with transformations in general with OH3 items? My transformations worked perfectly in OH2.
Very old thread I know. But when I was searching about groups in the OH3 UI I stumbled across this. Just for any other guy wondering how âadd members to the Groupâ should work with Items (only groups are selectable there) - just assign the items to the group - as usual: go to the item and select the new group here as parent.