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
events.log is always going to show the actual state of the Item
The state shown on Settings → Items is always going to show the actual state of the Item
The state shown on Settings → Items → MyItem is usually going to show the transformed state of the Item
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.
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.