Hello,
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