Condition in sequence

Hi! Can i add a condtion in a sequence, so that i can decide, if an “action” should be executed or not?

action:
  - choose:
      - conditions:
          - condition: trigger
            id: "on"
        sequence:
          - service: timer.restart
            data:
              duration: "00:30:00"
            target:
              entity_id: "{{timername}}"
            alias: Start/Restart Longtimer

The next part of the sequence should only be executed, if the state of the device is off, for example:

  - condition: template
    value_template: "{{ is_state(devicename, 'off') }}"
    - service: light.turn_on
      data: {}
      target:
        entity_id: "{{devicename}}"

Yes, but not quite as you have written it:

It won’t hurt to send a turn-on command when it’s already on, though.

Thank you!