Automation first ON second OFF

How I can create automation when first - turn ON entity, second - turn OFF entity?

My code below not work

alias: '##Nee automation3333'
description: ''
trigger: []
condition: []
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: light.lamp_444
            state: turn_off
        sequence:
          - type: turn_on
            device_id: a8e2436a853f512b83e079a2f816e612
            entity_id: light.lamp_444
            domain: light
      - conditions:
          - condition: state
            entity_id: light.lamp_444
            state: turn_off
        sequence:
          - type: turn_off
            device_id: a8e2436a853f512b83e079a2f816e612
            entity_id: light.lamp_444
            domain: light
    default: []
mode: single

There is no trigger defined, automation never starts.

An automation without a trigger is incomplete. I recommend you review this:

Aside from trigger, you can use toogle to switch the state of light.