Alternate action switch

How could I call call one of two different automatons or scripts in a alternate action method?
Click a button or a momentary toggle to call one of two actions?
One one time… Call it again and the second one runs.

Just use an Input Boolean helper and a choose action:

sequence:
  - choose:
      - conditions:
          - condition: state
            entity_id: input_boolean.XXXX
            state: on
        sequence:
          - script.1
      - conditions:
          - condition: state
            entity_id: input_boolean.XXXX
            state: off
        sequence:
          - script.2
  - service: input_boolean.toggle
    entity_id: input_boolean.XXXX

Thank you :slight_smile: