Transform String to Switch item?

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!

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

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