Because I am a distracted man… I need to have a repeated message on my cell if I forget to close the door of the fridge…
So, the trigger is the switch I installed in the fridge.
Here is my not working code:
alias: ‘door_fridge’
trigger:
- platform: state
entity_id: binary_sensor.fridge_door
to: ‘on’
for:
seconds: 15
action:
- service: notify.pushbullet
data:
title: “Home assistant warning”
message: “Porte du frigot ouvert pendant plus que 15 decondes!”
I need to add a something to reppead the insult message until I close the door.
Many thanks for your help.
Best regards
Thierry