Sleep for script

help prescribe pause between services in one script on 2 of seconds, script is used for automation curtains, pause need a for moreover to port th managed switch for changes of rotation of engine.
roughly as in this script

script:
example_script:
sequence:
- service: light.turn_on
data:
entity_id: light.ceiling1
sleep (200)
- service: light.turn_on
data:
entity_id: light.ceiling2

Please read the forum guidelines here:

Please format you code properly as described in the above topic.

Did you check out the documentation for scripts, there is a whole section about delays

Something like this should work:

script:
  example_script:
    sequence:
      - service: light.turn_on
        entity_id: light.ceiling1
      - delay:
          seconds: 2
      - service: light.turn_on
        entity_id: light.ceiling2
1 Like

Thank you very much, I’m still poorly oriented in the sections of the site, and really did not notice the description of the delay, as I speak English at an intermediate or elementary level. I’ll be careful now