alert when aqara temp sensors outside go above or below temp sensor inside

https://lemmy.world/post/1451208

alert when aqara temp sensors outside go above or below temp sensor inside - Lemmy.world

Wondering if this is possible. A quick look through the automations and scenes didn’t pop anything out for me, but it would be nice to know when to open and close my windows throughout the summer based on actual local temp now that I’ve got a couple of the Aqara sensors outside. The idea is that when the temp on both of the outdoor sensors goes below the temp on the inside sensor, in the afternoon/evening, I’d get an alert to open my windows. And in the morning I’d like an alert to close my windows when the outside temp and inside temp are the same.

Have you tried the “numeric state” trigger? It lets you trigger an automation if one numeric entity is higher or lower than another one.
I’ll take a look. Thanks for the suggestion!

In isolation a temperature sensor can be “flappy”, so you may want to try and smooth the data to avoid hysteresis. I use the statistics integration to help improve the quality of my sensors.

Have a read of this for inspiration:
https://community.home-assistant.io/t/thermostat-with-hysteresis-smoothing-factor/72729

Thermostat with hysteresis / smoothing factor

I am looking for a Thermostat in HA with hysteresis / smoothing factor. Currently I have this in Domoticz, but I would like to move completely to HA. The script in Domoticz: Hysteresis: Thermostat without Hysteresis: As soon as the sensor/room hit the desired temperature, it would immediately power the switch, which causing the AC/Heating unit to turn on and off in very short cycles. Average reading: Also there is a smoothing factor in the script: don’t use the current reading but averag...

Home Assistant Community
/u/Styxia suggested statistics to smooth the numbers out. I can’t reply to his comment for some reason, so I’m trying to reply here: Another option to avoid that issue would be to have the automation check that a > b for 2 minutes, or something like that.