I´m new to HA an try to make my config a little smarter for me. So I have problems to understand all the code stuff an think you can help me faster.
My question:
How can I change the output state from on/off to open/Closed. Also wan´t to change the windows icon of the sensor to open/closed and colour at open window icon…
The actual state is only ever on/off, that’s the way it works.
You can set the device class of the entity to a window sensor, which will then mean that (by default) it’ll show as open/closed in the UI and with an icon that changes state.
The actual state is only ever on/off, that’s the way it works.
You can set the device class of the entity to a window sensor, which will then mean that (by default) it’ll show as open/closed in the UI and with an icon that changes state.
None of this changes the actual state, just what cards that support translations will show.
A template sensor, to wrap the entity, is the only way to “change” the actual state.