Transform String to Switch item?

(Christoph B) #1

Hi there,

Just a very quick question, I have got a String item which receives “MOTION” and “ALARM” which
basically is a door sensor, so I would like to have it as a switch.

Is there a direct way I can define a Switch item with this channel and use a transformation map, or do I need to define a dummy item and update it if the String item receives a status change?

Thank you very much!

0 Likes

(Rossko57) #2

Maybe. Tell us about the existing channel/binding, not all allow for this in the same way.

0 Likes

(Christoph B) #3

Ah I see, it’s the Thing/Items mentioned here:

0 Likes