Sleep for script

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