I have open/close binary door sensor and would like to highlight it on Picture Elements map by red circle when the door is opened (“on” sensor state). I tried the following code (defining “on” with single quotes, double quotes and no quotes) - it doesn’t give me red circle in any state:
I asked the same question in the HA Facebook group - below is the code that actually worked. Though having the same sensor defined in 4 different places, especially when you have 10+ sensors, is just a killer…
Actually this does not work, at all. He said he needed COLOR to be changed and your code does not change color, maybe there’s a bug or maybe this is by design but the state-icon element does not change color, even when specified within a conditional element. Freaking annoying to say the least.
This part creates a round red circle around the element when active, which worked in my tests. But I don’t really like those double definitions, so never implemented them.