jeroenterheerdt / HADailySensor

Sensor for Home Assistant that gets reset at midnight
MIT License
76 stars 19 forks source link

Max over the last hour #42

Closed wigster closed 8 months ago

wigster commented 1 year ago

Hi, Is it possible to get the sensor to show the maximum over the past hour, every hour? By default, with 60-minute intervals, it seems to update the sensor max value only when the max in the last hour exceeds the previous max that day. Then I thought I could achieve this by resetting the sensors every sixty minutes and having a 60-minute duration, but instead my daily sensors are unknown.

I am trying to see track my maximum electrical current drawn in one-hour bins.

jeroenterheerdt commented 1 year ago

Everything is possible, but I'd say that's far out of the scope of this integration. It's a daily sensor, not an hourly. I believe what you want to do you can do using the HA built-in statistic capability.

jeroenterheerdt commented 8 months ago

I think https://github.com/jeroenterheerdt/HADailySensor/releases/tag/v2024.4.0 adds this.