script:
  routine_bedroom_bedtime:
    alias: Routine · Bedroom · Bedtime
    sequence:
      - service: media_player.unjoin
        entity_id:
          - media_player.living_room
          - media_player.kitchen
          - media_player.bathroom

      # - service: script.say_discretely
      #   data:
      #     message: "Entering bed time."

      # Set master bedroom state
      - service: fan.turn_on
        entity_id: fan.philips_airpurifier
      - service: input_select.select_option
        entity_id: input_select.purifier_preset_mode
        data:
          option: "sleep"

      - service: light.turn_on
        entity_id:
          - light.bedside

      - service: light.turn_off
        entity_id: light.master_bedroom_main

      - service: media_player.volume_set
        entity_id: media_player.master_bedroom
        data:
          volume_level: 0.15
