How to trigger an automation if a sensor has been steadily increasing for X minutes

I control my HVAC air-conditioner using Harmony. Sometimes, HA will think it turned on the AC, but for one reason or another (e.g. Harmony hub line-of-sight is blocked) it didn’t actually turn on.

I’d like to create a sensor that “guesses” whether the AC is on by detecting whether the livingroom temperature has been steadily increasing for some amount of time. If it’s increasing, then the AC is possibly not on.

One possible solution is to create an automation with a conditional that uses for: to check whether temperature has been at or above the last-reported temperature for X seconds/minutes. But that would involve adding some sort of new tracking variable.

Is there a more elegant way to accomplish this that I’m overlooking?

Check out the Trend Binary Sensor.

1 Like