I’ve noticed that when viewing sensors in Home Assistant’s dashboard, the colour coded bar makes perfect sense for state changes.
However here’s a screenshot of my PVOutput generation:
It’s the same on the History tab
Clearly that colour coded bar is pretty useless! The values can be anything, not a fixed set of states.
And it’s not exclusive to PVOutput, I’ve seen it for temperatures and other metrics.
Is it possible to change this so instead the colour shown represents the ‘strength’ of the value?
E.g. for PVOutput a day with maximum output would reach 40kwh for me, so that’s 100% and 0 is of course the lower end, so I’d want a continuious gradient between those two values.
For temperature it would be cool to have 5C or lower as dark blue, 20C as white and 35C or higher Red. That way you can glance at it and immediately see what the value is.
I’ve tried searching but couldn’t see any obvious way to adjust this.
I don’t believe you can set the colors for state changes, but I could be wrong.
However, it seems like for your use case here, a graph would be much more useful. HA will default to showing a state chart like the one in your photo if there is no unit of measure set. However if you define a unit of measure (it can be anything, just as long as it’s something) then it will display as a trend chart.
I’m not sure what kind of sensor this is so I can’t directly tell you how to do this.
However you can try customizing the entity and adding unit_of_measurement and see if that helps
(Note: this won’t change previously stored values, only new values moving forward. So if you open the entity like your photo which shows the past 24hrs, you might need to wait 24hrs for the change to be fully propagated to all values shown and look right.).
From the base sensor class, the docs describe it as: