Thanks very much for this. I have created the statistics sensor and am now seeing all of the statistical calculations I hoped to see. I think some items have even been added to the component and may already perform the change over time calculation i’m looking for. I setup the sensor for a sampling_size of 120 (because I publish my temperatures every 30 seconds) and I set the max age to 60 minutes. Despite the fact that the graph shows more than 1 hour, i think may be a bug. Notice how there is now a ‘Change’ attribute. As far as I can tell, the absolute value of that is what I want to trigger a notification. IE, ABS(change) >10.
I’m struggling understanding how to build that into the automation as a condition. I’m probably just getting the syntax wrong. In the attached image, i’m triggering off of the change in state of the sensor.attic_stats_mean which does appear to be working. I just can’t figure out how to evaluate the ‘change’ attribute.
Any help would be appreciated.


