Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103026

History stats for past n days

$
0
0

Hello all,

I’ve managed to use history_stats to show the duration a switch has been ‘on’ for today. However I would like to have a plot showing the ‘on’ duration each day for the past 7 days. Is there a neater way of doing this than copy and pasting the history_stats entity 7 times? And how can I make a lovelace card to show a graph of these 7 values?

From my experience so far, most plots in HA are continuous, so I’m not sure how to go about plotting specific values.

Any help much appreciated :slight_smile:

Thanks,
J

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>