script:
  routine_leaving_home:
    alias: Routine · Leaving home
    sequence:
      - service: input_boolean.turn_off
        entity_id: input_boolean.georgi_home
      - service: script.security_camera_on
      - service: media_player.turn_off
        entity_id:
          - media_player.nvidia_shield
          - media_player.living_room_tv
      - service: media_player.media_stop
        data_template:
          entity_id: "{{ states('input_select.sonos_leader') }}"
      - service: light.turn_off
        entity_id: light.all_lights
