#one script to monitor/nnotify multiple doors in case left open.

1 messages · Page 1 of 1 (latest)

patent lake
#

in my current setup I noticed this:
opening garage door, waiting, recieving notification,(good)
opening tellet door, waiting , recieving notification,(good)
closing garage door, notification goes away.(good)
closing tellet door, notification remains.(cancelled by the above?)

alias: Doors left open
description: ""
triggers:

  • trigger: state
    entity_id:
    • binary_sensor.tellet_contact
      for:
      hours: 0
      minutes: 0
      seconds: 8
      from: "off"
      to: "on"
      id: tellet
  • trigger: state
    entity_id:
    • binary_sensor.garage_door_contact
      for:
      hours: 0
      minutes: 0
      seconds: 8
      from: "off"
      to: "on"
      id: garage-person
      conditions: []
      actions:
  • action: notify.notify
    data:
    title: Security Alert
    message: "Door: {{ door_id }} is left open"
    data:
    tag: door-alert-{{ door_id }}
  • wait_for_trigger:
    • trigger: template
      value_template: "{{ is_state(door_entity, 'off') }}"
  • action: notify.notify
    data:
    message: clear_notification
    data:
    tag: door-alert-{{ door_id }}
    variables:
    door_entity: "{{ trigger.entity_id }}"
    door_id: "{{ trigger.id }}"
    mode: parallel
    max: 10
#

one script to monitor/notify if multiple doors in case left open.