Delay between services

Hi, i want a delay of 5 seconds between 2 services. How i could implement this? I tried with delay but i think im doing something wrong.

- service: remote.turn_on
  data:
    entity_id: remote.arbeitszimmer
- service: remote.turn_on
  data:
    entity_id: remote.wohnzimmer

HERE i want a delay of 5 seconds

- service: media_player.volume_set
  data:
    volume_level: 1
    entity_id: media_player.homepodall
- service: media_player.play_media
  entity_id: media_player.homepodall
  data:
    media_content_id: media-source://media_source/local/1 HOUR - Emergency Base ALARM.mp3
    media_content_type: audio/mpeg
    announce: true
- service: remote.turn_on
  data:
    entity_id: remote.arbeitszimmer
- service: remote.turn_on
  data:
    entity_id: remote.wohnzimmer
- delay: 5
- service: media_player.volume_set
  data:
    volume_level: 1
    entity_id: media_player.homepodall
- service: media_player.play_media
  entity_id: media_player.homepodall
  data:
    media_content_id: media-source://media_source/local/1 HOUR - Emergency Base ALARM.mp3
    media_content_type: audio/mpeg
    announce: true

This is not working, cannot save the yaml.
if I change it to this I can save it, but the delay is not working.

- service: remote.turn_on
  data:
    entity_id: remote.arbeitszimmer
- service: remote.turn_on
  data:
    entity_id: remote.wohnzimmer
  delay: 5
- service: media_player.volume_set
  data:
    volume_level: 1
    entity_id: media_player.homepodall
- service: media_player.play_media
  entity_id: media_player.homepodall
  data:
    media_content_id: media-source://media_source/local/1 HOUR - Emergency Base ALARM.mp3
    media_content_type: audio/mpeg
    announce: true

You miss a “-” in front of delay. The delay is its own action step

Yeah, but if I put it infront, I cannot press save.
It comes an error:

Something went wrong!
Message format incorrect: required key not provided @ data['actions'][2]['service']

Response error: 400

Please report the bug.

According to that error message, you are putting the dash in the wrong place.

- service: remote.turn_on
  data:
    entity_id: remote.arbeitszimmer
- service: remote.turn_on
  data:
    entity_id: remote.wohnzimmer
- delay: 5
- service: media_player.volume_set
  data:
    volume_level: 1
    entity_id: media_player.homepodall
- service: media_player.play_media
  entity_id: media_player.homepodall
  data:
    media_content_id: media-source://media_source/local/1 HOUR - Emergency Base ALARM.mp3
    media_content_type: audio/mpeg
    announce: true

Exactly the same error.

Nobody who could help me here?