Stopping a notification for a certain condition

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
trigger:
  - platform: state
    entity_id:
      - binary_sensor.test_sensor
    to: "true"
condition: []
action:
  - service: automation.turn_off
    data:
      stop_actions: true
    target:
      entity_id: automation.wait_test
  - delay:
      minutes: 30
  - service: automation.turn_on
    target:
      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