Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Created January 24, 2021 16:56
Show Gist options
  • Save Didgeridrew/6176a34bba8a0d93ee008b7a21b0d218 to your computer and use it in GitHub Desktop.
Save Didgeridrew/6176a34bba8a0d93ee008b7a21b0d218 to your computer and use it in GitHub Desktop.
Repeating notification for Serle
alias: Notify - Cupboard Door Open
description: ''
trigger:
- type: opened
platform: device
device_id: 3f8555797cd544d4c65da3c55549f765
entity_id: binary_sensor.cupboard_door_contact
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: input_boolean.notification_mute
state: 'off'
- condition: state
entity_id: input_boolean.night
state: 'off'
action:
- repeat:
until:
- condition: state
entity_id: binary_sensor.cupboard_door_contact
state: 'off'
sequence:
- service: notify.alexa_media
data:
data:
type: tts
target: media_player.hallway_echo
message: 'The Cupboard Door has been left open'
- delay: '{{ states(''input_number.cupboard_door_warning_repeat'') | multiply(60) | int }}'
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment