I see, sorry I toiught they were two different graph because of the title, my bad
I guess that this might somehow be a bug,
But technically also the 4th bar is wrong, because in the history graph the 4th should be almost half of the previous barm how many âreadsâ are done each day?
Cause maybe thatâs the issue there, maybe a good FR should be havving âpoints_per_dayâ rather than per hour.
Are you sure it only reports once a day? Judging by the graph it looks to be updating regularly and then reset once a day. (especially noticeable when looking at the last day).
This wonât work well with this card, since the graph is based on a moving average calculated on the history data from each data point (24 hours in this case).
Also, if you would open the UI with the graph in the middle of the day (12:00) for example, each bar will consist of history data from 12:00 a clock - 12:00 a clock previous day, while you are probably expecting it to calculate each day from 00:00-24:00.
Anyway, I think you could make it work, but it would require some work.
Kind of hard to explain but if you could make the sensor only report once at the end of the day (at the exact same time every day), maybe just before 00:00 and then also reset itself, I think it could work. The sensor would need to be updated at the exact same time every day though, if not, two updates could end up in the same 24 hour timespan. An easy workaround would be to set hours to show slight lower (286) but still have it display 12 bars, that way each day would be 23h50min and you have a 10 minute margin for the sensor to update.
Also, thereâs a bug with the bar chart atm, thereâs an additional bar, the last (right) bar shouldnât be there.
Itâs possible, depending on how the sensor data looks. The graph is calculated by moving average, so not really suitable for such use cases but itâs possible. Read the post above for more details.
This is what i get using the sensor.living_room_heating.
Problem is that at night (from 00:00 to 07:30) the sensor in /states shows always 0% as value, while in the card it shows always 16,5%. The thermostat is off between those hours. Why i donât get 0% as the sensor says?
Sounds like the sensor might be reporting something thatâs not considered a number when itâs âoff/0â, the graph would then ignore those history entries.
But I would need access to the history to give you a definite answer.
Hereâs a quick post on how you can access the history
I hate to be picky (take it as a sign that everything else is so great that this is all I can come up with ) but using a theme with rounded corners gives this
To be honest, I donât care if you donât but that is only because I refuse to let my OCD take overâŠ
The graph is calculated by a moving average, which might explain why you donât see it dip to zero instantly.
Thanks for the data, Iâll play around with it and see if thereâs an actual issue with the graph algorithm or if this in fact is a side effect of moving average.
That wonât be happening, thereâs the history-graph already if you want that type of a graph.
Not basing the graph by moving average would make it basically look and function like the default HA graph, straight lines and jagged edges, no smooth curves. Also, the bar chart wouldnât be possible without calculating some sort of average.