Transformation config:
open=port
closed=starboard
opening=switching to port
closing=switching to starboard
NULL=changing
All other values are perfectly transformed, except value “closed” to “starboard”, i tried wit and without quotes on the value, but it doesn’t make a difference. The source of the values is a Shelly rollershutter switch.
Show your code like item/channel config, text based, UI based, etc. At this moment you only post what you want the transformation to do, not what your code looks like (where most likely an error resides).
Show what your Shelly is communicating. Is that via the Shelly binding? Or MQTT? Or…
Double check what the shelly is sending. If the other values work, there is something different about the “closed”. Is it really reporting “close”, “closed " " closed”?