Item State displayed in 2 different ways?

OH 5.1.1 running on RPi5 configured entirely with Main UI

I used an old Z-wave sensor device to capture the state of my HVAC system.

In the Event log it shows states of ON/OFF but the Item state displayed in the UI is triggered/untriggered.

In the Item list in Settings it shows ON/OFF

image

I would prefer to use ON/OFF.

What’s the easiest way to achieve this?

Thanks

The state and native display for a switch type item is ON/OFF but you can (and probably did) apply display mappings via metadata / state description / options

But I did not add any mapping options to the Item

version: 1
items:
  ZWave_Node_077_ZW097_Dry_Contact_Sensor_Binary_Sensor:
    type: Switch
    label: Main HVAC Humidifier
    groups:
      - gEnergy
    tags:
      - Energy
      - Status

Where else should I look for any mappings?

Just to make things clear:

  1. events.log is always going to show the actual state of the Item
  2. The state shown on Settings → Items is always going to show the actual state of the Item
  3. The state shown on Settings → Items → MyItem is usually going to show the transformed state of the Item
  4. The state shown on any widget on any page in MainUI is usually going to show the transformed state of the Item

The mappings were probably pushed by the binding. Many bindings will push stateDescription information on to the Item at link time. Sometimes this is desirable, other times it’s not. I hate that it does so silently.

What you need to do is override this setting.

I think it may be sufficient to just add “State Description” metadata to the Item and set the pattern field to %s.

I suspected the mapping must have come from the binding.

I tried adding %s to the State Description metadata but it had no effect.

Is this something that can be done with a Profile or a Transformation?

No. It’s the stateDescription that controls how it’s shown. A Profile would change the actual state of the Item and you don’t need a Transformation to show the state of the Item unmodified.

Try putting a space under options.

Putting a space in Options solved it.

Thanks!