#Stopping an automation

1 messages · Page 1 of 1 (latest)

clever nebula
#

For my garage door detector (camrea check for color)

How can i stop the automation flow if garage becomes closed before the timer goes out

description: Handle garage status and send alert after 15 min open
triggers:
  - allowed_methods:
      - POST
      - PUT
    local_only: false
    webhook_id: "redacted"
    trigger: webhook
actions:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.json.status == 'open' }}"
          - condition: state
            entity_id: input_boolean.garage_alert_active
            state: "off"
        sequence:
          - target:
              entity_id: input_boolean.garage_alert_active
            action: input_boolean.turn_on
            data: {}
          - delay:
              hours: 0
              minutes: 15
              seconds: 0
              milliseconds: 0
          - condition: state
            entity_id: input_text.garage_status
            state: open
          - parallel:
              - action: notify.mobile_app_sm_x808u
                metadata: {}
                data:
                  title: Check Garage Door
                  message: Garage door was detected open!
              - action: notify.mobile_app_sm_s906u
                metadata: {}
                data:
                  title: Check Garage Door
                  message: Garage door was detected open!
              - action: notify.mobile_app_sm_a166m
                metadata: {}
                data:
                  message: Garage door was detected open!
                  title: Check Garage Door
          - target:
              entity_id: input_boolean.garage_alert_active
            action: input_boolean.turn_off
            data: {}
      - conditions:
          - condition: template
            value_template: "{{ trigger.json.status == 'closed' }}"
        sequence:
          - target:
              entity_id: input_boolean.garage_alert_active
            action: input_boolean.turn_off
            data: {}
mode: single
wicked parrot
clever nebula