Is there a way, either through history_stats
or otherwise, to display statistics (for example for a switch’s on time) for many different entities? My use case: I control several heaters, and so I was wondering if I could get operation statistics for all of them at once for a given time period. history_stats
works ok for single entities, though setting it up is pretty cumbersome. Thanks a lot!
Put all of the heaters you want to track in a group and use the history statistics sensor to report how long the group was on.
1 Like
Thanks! Will I still be able to control them independently? And will the time some entities were on but not others be counter?
Yes.
The group will be on when any of the heaters is on.
1 Like
I see this was marked resolved, so I must have misunderstood the question.
Just creating one entity card, with both history_stats and binary sensor entities worked for me.
The first five entities are binary. They graphically show when and for how long each devices was on.
The next five are history_stats entities. They show cumulative values over each day.
If this doesn’t help the OP, maybe someone else will stumble on it who finds it helpful.