Very simple script, help

Trying to do my first script (two events one after the other)

I have two switch, one is sending a command to turn on an electric switch, the other is a IR commands to turn on a projector (connected electrically to the electric switch).
I simply need to turn on the electric switch, wait maybe 1 second and then send the IR signal to power on.
How to do this simple sequence?
The command should be inside a card as a single switch

switch.p13_projector
switch.projector_living:

Maybe anything like this?

If you manual switch on swtich.p13_projector, than power on the projector.

automation:
  trigger:
    platform: state
    entity_id: switch.p13_projector
    state: 'on'
  action:
    service: script.turn_on
    entity_id: script.projector_poweron

script:
  projector_poweron:
    sequence:
        - delay:
          seconds: 1
        - service: switch.turn_on
          data:
            entity_id: switch.projector_living

Thanks I wil try.

Please note, my switch are of this format

projector_living:
      command_on: "curl -X GET http://192.168.1.50:9876/send?deviceMac\u0xxxxxxxxxxxx"
      command_off: "curl -X GET http://192.168.1.50:9876/send?deviceMac\xxxxxxxxxxxxxx"

if the entity_id for the switch is working in HA , the format is not important