this post was submitted on 14 Jul 2023
12 points (92.9% liked)

homeassistant

12025 readers
74 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago (3 children)

Have you tried the "numeric state" trigger? It lets you trigger an automation if one numeric entity is higher or lower than another one.

[–] june 2 points 1 year ago (2 children)

I’ll take a look. Thanks for the suggestion!

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

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

Using this you would create a calibrated sensor which you would use for automations as SeriousBug suggests.

load more comments (1 replies)
load more comments (1 replies)