Fairly new here to OpenHab running latest beta5 of OpenHab 2.
I am noticing some oddness when I am using a Selection that contains a mapping at the same time the item contains Map style transformation. This is for controlling an HLC scene switch on an OmniPro.
My sitemap looks like this:
Selection item=Lights_Kitchen_String label="Scene" icon="kitchen" mappings=['On'=On, 'Off'=Off, "Scene A"=Cook, "Scene B"=Clean, "Scene C"=Eat, "Scene D"=Island]
This works, but when it displays the scene on the UI it doesn’t used the mapped value. In other words, it displays ‘Scene A’ and I want it to display ‘Cook’. It appears the way to handle that is with mapping transformation in the items file.
I have the following map file:
On=On
Off=Off
Scene\ A=Cook
Scene\ B=Clean
Scene\ C=Eat
Scene\ D=Island
My items file looks like this:
String Lights_Kitchen_String "Kitchen [MAP(kitchen.map):%s]" (Lights_Kitchen) {omnilink="unit:25"}
The transformation seems to work, but it seems to fight it. No matter what I pick, my selection will momentarily show up in the UI and then disappear and be replaced by ‘On’. Which kicks off the link for On. If I don’t have the map transformation in place, the selection sticks.
Am I approaching this incorrectly or how does one accomplish this?