Basically, it sends me a message everytime the outdoor temperature is below the indoor temperature, in order for me to open the windows to refresh the room.
It works perfectly, but it sends me a message every 5minutes, which is not ideal. Is there a way to wait that the condition isn’t met anymore to be allowed to re-enter?
Here is my current template:
alias: Alert open windows
description: ''
trigger:
- platform: time_pattern
minutes: /5
condition:
- condition: template
value_template: >-
{{ ( states('sensor.netatmo_givihome_salon_balcon_temperature') | float )
< (states('sensor.netatmo_givihome_salon_temperature') | float) }}
action:
- device_id: d7478c53e925f19ccf1eafaaea192d3c
domain: mobile_app
type: notify
message: >-
Alert! The external
temperature({{states('sensor.netatmo_givihome_salon_balcon_temperature')}})
is below the internal
temperature({{states('sensor.netatmo_givihome_salon_temperature')}}).
Activate the canicule plan(well, open the windows)
title: Open window
mode: single
Thanks for the answer! I’m not sure which other condition I could map? Because depending on the meteo, it may happens at very different times of the day, and even if I say this should only happen between sunrise and sunset, it will still triggers every 5 min
Thats because you have set the trigger to be every 5 mins, so if the following condition is true you will get a message every 5 mins just like you have asked for!
If you only want the message once when the condition transitions to true the simply use the condition as the trigger like this:
OK, let me know how you get on as I can see any logic in firing an automation every 5 mins, 24 hours a day, 7 days a week for a simple temp automation.
Me neither, I taught it was because you could not have more than one sensor as trigger. As of now, it doesn’t trigger the message at regular interval, I’ve to wait tomorrow to see if it still notify.
Thanks, I tested to set the external temperature to 20°, but it didn’t trigger any notification. I see that it went to the real temperature just a moment after it was set to 20°. Any idea why it didn’t trigger?
What was the temp of the other sensor at the time and paste you current/new automation setup again, not sure anymore where you are after all these comments