WTH: Why no sequence action like parallel action in automation/scripts

You can put a sequence in a parallel action

It’s explained clearly in the docs:

It is also possible to run a group of actions sequantially inside the parallel actions. The example below demonstrates that:

script:
  example_script:
    sequence:
      - parallel:
          - sequence:
              - wait_for_trigger:
                  - platform: state
                    entity_id: binary_sensor.motion
                    to: "on"
              - service: notify.person1
                data:
                  message: "This message awaited the motion trigger"
          - service: notify.person2
            data:
              message: "I am sent immediately and do not await the above action!"

Oh wait, you already knew, but you want it in the GUI…

1 Like