Limych / ha-average

Average Sensor for Home Assistant
Other
360 stars 30 forks source link

GTS Temperatur #225

Open moritzgoebel15 opened 8 months ago

moritzgoebel15 commented 8 months ago

Checklist

Is your feature request related to a problem? Please describe.

I want to create an average that is calculating the Sum of the median temperature of every day. The sensor is providing the outdoor temperature for the entire day. It is important to eliminate all days that have a temperature that is on average below zero. Starting Jan 1st of each year t will output the GTS temperature, which indicates the green season start in the garden in Germany.

Describe the solution you'd like

Sum( median(sensor.outoor-temp) if median(sensor.outdoor-temp>0) and date > 01.01.2024)

Describe alternatives you've considered

I tried to create two averages

Additional context

I use Ecowitt as the weather station source.

Limych commented 1 month ago

The main problem with calculating medians is that it requires storing all possible sensor values ​​in memory. And this is an extremely large amount of information. I don't know yet how to calculate medians without such storage. Therefore, alas, I have to postpone all innovations related to calculating medians for an indefinite period. Sorry.

See also: #9 , #20