Although you did not say, I will assume you moved from a Home Assistant install to Hassio.
Did you have a custom Lovelace theme when you used HA ?
A custom theme may be able to accomplish this.
Same issue here. When my doors are closed (they are set up as binary sensors) the state in the GUI is correct (open/close icons, open icon is yellow), but in the history, open shows up as green and closed as red. That seems off …
I am running HA 0.91.2 as a manual setup on Raspbian.
Unfortunately the issue mentioned above has been closed, but this problem has still not been resolved - I’m on Home Assistant 0.106.6 and the colors are still wrong for binary sensors.
I have this same problem on a fresh install of HassOS, updated to the latest HA 2012.12.1. Colors are inverted pretty much across the board on my all my ZWave sensors. Clear/unclear, safe/unsafe, open/closed… they’re all exactly the opposite of what you’d expect.
I see this has been an issue for quite a while now, and that the github issue linked above went stale and got auto-closed by the bot. That seems kind of crazy. Does anyone have any insight into why this has gone so stale? Is there some underlying code or logic problem that makes this non-trivial for the devs to address? Did anyone ever find a way to fix this with custom Lovelace themes?
There is no visual representation of the state in the history, as far as I remember. The colors are chosen randomly.
But the weird thing is that before I moved to hassio (I had a a python install) all the visual history made sense for me. I probably also bumped the hass version itself at the time.
I remember that specially the motion binary sensor was correctly displayed this time with:
I’m new to HA and I too noticed that motion detector colors are inverted (green = motion, red = safe).
It is not valid to invert the sensor because that displays that motion is detected. Green color, but erroneous state.
I looked at the source (current as of September 22, 2021) and could this be an easy fix?
File frontend-dev/src/components/chart/state-history-chart-timeline.ts :
Line 18 has a set variable
BINARY_SENSOR_DEVICE_CLASS_COLOR_INVERTED
It has things like door and window in the set. Can