Is it possible to change the state/icon/color of a binary sensor? I have 2 Wyze Sense contact sensors used on a sliding door with a latch lock. One is used to check whether the door is closed and the second one is used to check whether it’s locked (i.e. the latch is in the lock position).
So the 2 sensors are used as follows:
Closed: Standard door icon (dynamic icon showing door open/closed). Status: Open/Closed
Locked: Lock icon (dynamic icon showing door locked/unlocked. Status: Locked/Unlocked
If you want the colour to be different than the active/inactive icon colour that can be applied globally with themes to every icon, you will have to use card- mod.
Was able to change the device class. So the lock is a lock and has the correct state. One tick
What I can’t seem to figure out is how does the state affect the icon used; e.g. the open/closed door state changes the icon accordingly where as the lock icon stays the same despite the state changing from unlocked to locked.
Ok so if I wanted to override the default icons used for on/off I would specify this in the front end code editor and use different icons for each state?