Sensor for Home Assistant that gets reset at midnight
Sensor for Home Assistant that gets reset at midnight
Daily Sensor is a Home Assistant custom component that accumulates readings from a chosen sensor throughout the day and resets at midnight. You can select how values are aggregated: minimum, maximum, sum, average (mean), median, standard deviation, or variation. It's a simple way to produce clear daily summaries from any numeric sensor.
If you're experiencing a 500 error when editing Daily Sensor configuration, this fork contains critical bug fixes that are pending merge to the upstream repository.
The upstream HACS version has a breaking bug that causes a 500 Internal Server Error when attempting to edit existing Daily Sensor configurations via the UI.
Until PR #105 is merged, install this maintained fork:
Via HACS (Custom Repository):
https://github.com/elyobelyob/HADailySensorWhat's Fixed:
Install the custom component (preferably using HACS) and then use the Configuration --> Integrations pane to search for 'Daily Sensor'. You will need to specify the following:
min, max, sum, mean, median, stdev, or varianceAll sensors will be reset at 00:00 local time (unless auto-reset is disabled) and can be reset manually by calling the daily.reset service for each instance.
This component is most frequently used to create a minimum and maximum daily temperature sensor based on a temperature sensor that is provided by a weather station, but can be used for many different things.
No open issues yet, or sync has not completed.