bedtime:
  alias: Go to bed
  sequence:
    - service: light.turn_on
      data:
        entity_id: group.hall_lights
    - delay: '00:10:00'
    - service: light.turn_off
      data:
        entity_id:
          - group.kitchen_lights
          - group.living_room_lights
    - delay: '00:30:00'
    - service: light.turn_off
      data:
        entity_id:
          - group.hall_lights
          - group.outdoor_lights

bedtime:
  alias: Go to bed
  sequence:
    - service: light.turn_on
      data:
        entity_id: group.hall_lights
    - service: media_player.media_pause
      data:
        entity_id:
          - media_player.sonos_device_wohnzimmer
          - media_player.sonos_device_kuche
    - delay: '00:10:00'
    - service: light.turn_off
      data:
        entity_id:
          - group.kitchen_lights
          - group.living_room_lights
    - delay: '00:30:00'
    - service: light.turn_off
      data:
        entity_id:
          - group.hall_lights
          - group.outdoor_lights

Switch off Sonos devices when going to bed
Switch off Sonos devices when going to bed
