Hoping to get a little guidance with a script (adding an or condition)-- I am very new to this and using some "gifted" code

Thank you all for any guidance you can give me with the subject. I’m sure this is going to be pretty straightforward for someone that knows how to do this stuff. With the code snippet below. How can I make “wait_template” portion work for both the front door and the garage entry door? Essentially “or”

Thank you all ahead of time for helping me with this. I am definitely just learning everything at this point.

  - id: welcome_home
    alias: Welcome Home
    mode: restart
    trigger:
      - platform: state
        entity_id:
          - person.weston
          - person.clarice
        from: "not_home"
        to: "home"
    action:
      - choose:
          - conditions:
              - condition: state
                entity_id: input_boolean.welcome_home
                state: "on"
            sequence:
              - service: script.turn_on
                entity_id: script.welcome_briefing
        default:
          - service: group.set
            data:
              object_id: "arriving"
              add_entities: >-
                {{ trigger.to_state.entity_id }}
          - wait_template: "{{ is_state('binary_sensor.front_door', 'on') }}"
            timeout: "00:3:00"
          - service: script.status_annc
            data_template:
              who: "kitchen"
              call_interuption: 1

Literally with “or” :slight_smile:

          - wait_template: "{{ is_state('binary_sensor.front_door', 'on') or is_state('binary_sensor.garage_door', 'on') }}"

Oh my God. I’m done for the day after that one. I’m sorry @rccoleman Thank you for your help on this though. I think I’ve gotten gun shy witch any coding within home assistant. I about build everything in the gui and then copy paste to yaml for storing.

Thank you for your help with this. :slight_smile: