here the state:default. I want one switch item to display the inverted state. This is because I control a relay in Normal Closed state and want to have displayed it correctly.
I only want the switch icons displayed in the inverted order.
(Like in the ON state). Note that all code behind is in OFF state, this because the relay is in NO (normal open) state what means light is turned on.
Even in the item visualization? What are the other options for :state:default ?
I have lamp connected to a relay in the NC (normal closed) mode. If there is no power at the relay the lamp is TURNED ON. If I apply powef to the relay (turn the relay on) the lamp is TURNED OFF. This is necessary for the case of a power failure. - the lamp is connected to an auxiliary power.
In MQTT and OH the real state is OFF (lamp is turned on). This is the reason I want to have the switch item in the ON status (green), even if my logic behind is OFF.