Hey people,
I want to set up an automation that will alert everyone that the dog’s door to the outside is closed,
The trick I need help with is I want to alert everyone 30minutes after it’s been shut then again a half hour after. Do I need to set up two automations one for 30 min the second for 60?
Here is what I have so far.
Thanks in advance.
- id: '1541469460579'
alias: Archies Door Shut
trigger:
- entity_id: binary_sensor.door_window_sensor_158d00027b5a98
for: 0:30:00
platform: state
to: 'off'
condition: []
action:
- data:
message: Just a reminder. Archies Door is closed.
entity_id: media_player.cinema, media_player.ellas_bedroom, media_player.ethan,
media_player.living_room, media_player.bedroom
service: media_player.alexa_tts
your existing automation will just wait a further 30 mins from the first notification and then IF the door is still closed, run the notification again (one hour from the initial trigger). The reason I see for this is so that it doesn’t run the notification the second time if someone has since attended to the closed door.
And for further info if you want to keep receiving the notification every 30 minutes until it’s open then you can modify what I’ve done for a garage door notification:
timer:
north_garage_door:
duration: '00:30:00'
automation:
- alias: 'Notification North GD Open'
trigger:
- platform: state
entity_id: sensor.n_gd_pos_template
to: 'Open'
for:
minutes: 30
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.north_garage_door
condition:
condition: state
entity_id: sensor.n_gd_pos_template
state: 'Open'
action:
- service: notify.pushbullet_notify
data:
message: 'The North Garage Door Is Still Open'
- service: timer.start
entity_id: timer.north_garage_door