I want to trigger an automation every minute after my door remains open.
I saw that an alert could solve this for the notification part, but I would also like to trigger a TTS warning.
The problem is that the automation is triggered every multiple of 1min and not every 1min since the door remained open.
Here is my code:
- id: '1651058576746'
alias: Front door left open
description: ''
trigger:
- platform: time_pattern
minutes: /1
condition:
- condition: state
entity_id: binary_sensor.front_door
state: 'on'
action:
- service: tts.google_translate_say
data:
entity_id: media_player.nestmini3072
message: Front door left open!
- service: notify.notify
data:
title: Door/Window sensor
message: Front door left open
Any way to solve this please?
1 post - 1 participant