Stopping a notification for a certain condition

I have a door I monitor when opened. How can suspend a notification for a period of time after it is opened for occasions where we are going in and out of the door. For instance, suspending the trigger for 30 minutes.

  - type: opened
    platform: device
    device_id: 511eb344e60e78c9fd6e04c4fde4dee4
    entity_id: 98109a5df09cc2558885fba03c417988
    domain: binary_sensor
    enabled: true
    id: GarageEntrry
condition: []


then do a wait or timer to turn it back on.

to protect against not turning back if a restart happens in the middle safer to use a timer to turn on and make sure it’s set to restore on restart.

1 Like

I am trying that thanks.

holler if you need help.
by the way, i’d encourage you to use friendly named entity_id’s for your automation an not use device id’s and device triggers.

here’s more depth into why:

but your automation should get much simpler if you do that, and more readable:

description: ""
mode: single
  - platform: state
      - binary_sensor.test_sensor
    to: "true"
condition: []
  - service: automation.turn_off
      stop_actions: true
      entity_id: automation.wait_test
  - delay:
      minutes: 30
  - service: automation.turn_on
      entity_id: automation.wait_test

ignore the names of the entities… replace them with your own. i just chose a random set of my own

I did give it a friendly name and did exactly as you describe and it worked like a charm. Thanks again for your help.