Skip to content

Sensor for Home Assistant that gets reset at midnight

License

Notifications You must be signed in to change notification settings

Kaibob2/HADailySensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge

Support the author on Patreon

Buy me a coffee

HADailySensor

Daily Sensor custom component for Home Assistant. It takes aggregates an input sensor until midnight. Then it resets. Aggregation is configurable - available options are: minimum, maximum, sum, average (mean), median, standard deviation and variation.

Configuration

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:

  • Name of the daily sensor. This name needs to be unique in your Home Assistant installation.
  • Name of the input sensor - this is the sensor that the daily sensor will aggregate during the day.
  • The aggregation to run on the input sensor - you can choose min, max, sum, mean, median, stdev and variation.
  • The interval in minutes in which to update this sensor.

That's all. You can add the component multiple times to aggregate other sensors. All sensors will be reset at 00:00 local time and can be reset manually by calling the reset service for each instance of the component.

Use case

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 is can be used for many different things.

About

Sensor for Home Assistant that gets reset at midnight

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%