Ive been debating the most efficient way to create this automation to remind me to open a window for my office if its cooler in my backyard in the evenings. The thing is, I dont want to get spammed, I just need that one notification. I was thinking about doing it like this at the moment but it feels a bit inefficient.
Create input_boolean
Automation 1: If temperature outside is cooler than room temperature by 2 degrees or more, set input_boolean to true.
Automation 2: If input_boolean is set to true, send push notification and disable automation 1.
Automation 3: Reset input_boolean to off at sunsett and reset automation 1 back to enabled.
Maybe there’s a decent way to combine this into just one automation?
mode: single
trigger
(temp_out - 2) < temp_in for 10 mins
conditions
time range
window is closed
sun is up
user is home
send message
wait timer
60 mins for window to open (automation stays running)
(by then the temp trend should be low enough not to trigger the automation again)