A pause in script

A newbie question (and the solution will take me a big step further):

I want to create a script for night mode (turning my lights off, turn on the alarm and so on). But I want to delay turning off one of the lamps, like this (in scripts.yaml):

go_to_bed:
  alias: "Go to bed"
  sequence:
    - service: light.turn_off
      entity_id:
        - light.stue
        [Here I want a pause, e.g.pause for 10 minutes]
        - light.tvstue

Thank you for your input :slight_smile:

split your service calls up then add a delay.

  sequence:
    - service: light.turn_off
      entity_id: light.stue
    - delay:
        minutes: 10
    - service: light.turn_off
      entity_id: light.tvstue

Perfect, you saved my evening. Thanks.