Map transformation with value "closed"

  • Platform information:
    • Hardware: Intel NUC
    • OS: Ubuntu 22.04
    • Java Runtime Environment: openjdk 21.0.9 2025-10-21 LTS
    • openHAB version: 5.3.0 build 5532
  • Value “closed” is not translated to “starboard”
  • Please post configurations (if applicable):
    • 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.

EDIT: I validated the value is indeed a string

I think a bit more info is required:

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”?

This is my shelly thing & item

This is my transformation:

Below is the value shown in closed position:

I copied the value from the item state, just to make sure there is no problem with encoding or something. Still no result…

Hi !

I had a similar issue solved by @rlkoshak I’m not sure its the same situation.

Item Metadata | State Description | Options

Thanks for your input! it works using this workaround…