I have made an automation to send me an e-mail once a humidity sensor is above 60.
This is working. But problem is that if sensors after 1 min goes back under 60 and than one minut later again above 60 I have everytime a new mail.
Now I want to receive only one mail every 24h. How can I program this?
This is the code I have that is working now.
alias: Notificatiemail luchtvochtigheid living boven 60%
description: Stuur een mail bij wanneer de luchtvochtigheid meer is dan 60%
trigger:
- platform: numeric_state
entity_id: sensor.living_humidity_2
above: 60
condition: []
action:
- service: notify.email
data:
message: >-
De luchtvochtigheidsgraad in de living is gestegen boven de 60%. De
luchtbevochtiger uitzetten.
title: Luchtvochtigheid living boven 60%
target:
- [email protected]
mode: single
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.
I’ve been thinking about this but that will not trigger the automation when it should be.
I want a notification on my phone to inform me the first time when the temperature goes below a certain point. So that I have to disconnect water outside to prevent the tubes gets frozen.
At my location that’s mostly in october or november.
But when I use to see if it has been triggered this year than I will have this notification in january. But than I already have disconnect the water and I will not receive a new notification september/oktober.
So the automation actually should only run once between september and january.
I hope it’s more clear now for what I’m making an automation.