Skip to content

Package: Scenes

Version: 1.0.0
Description: Definitions for various lighting scenes (Daylight, Night, Movie, etc.)

Package Diagram

Executive Summary

The Scenes package serves as the centralized library for lighting presets across the home. It defines specific, reproducible states (brightness, color, and temperature) for groups of lights, enabling standardized "moods" like "Daylight", "Night", "TV", and "Relax" to be activated by dashboards or automations.

Process Description (Non-Technical)

Think of this package as a "Recipe Book" for your lights. Instead of manually adjusting five different bulbs to get the perfect movie lighting, you define a "TV Scene" once. 1. Definition: Contains the exact settings (color, brightness) for every light in a room for a specific activity. 2. Activation: When you tap a button or a motion sensor triggers, Home Assistant simply looks up the "Recipe" and tells all the lights to match it instantly.

Dashboard Connections

This package powers the following dashboard views:

  • Bedroom: The Bedroom dashboard focuses on comfort and sleep tracking. It provides controls for the ceiling and bed lights, as well as both window blinds and roller covers. Environmental health is monitored via CO2, temperature, and humidity graphs. A specialized section covers 'Bed Occupancy', aggregating data from pressure sensors and mmWave (FP2) sensors to accurately detect presence in bed for both sides, enabling advanced sleep automations. (Uses 2 entities)
  • Hallway: This view manages the Hallway area. It provides simple controls for the ceiling and stair lights. The dashboard also visualizes presence data from multiple FP2 sensors (Hallway and Downstairs) and includes standard occupancy and scheduling settings. (Uses 1 entities)
  • Kitchen: This view offers comprehensive control over the Kitchen. It monitors critical appliances, showing the status of the fridge (door/leak), coffee machine, and detailed cycle information for the dishwasher. Lighting controls allow for general switching or individual bulb adjustments. A key feature is the visualization of zoned presence detection (Entrance, Table, Cooking) using FP2 sensors, enabling highly granular kitchen automations. (Uses 1 entities)
  • Living Room: The Living Room dashboard is a media and comfort hub. It features in-depth environmental monitoring (Radon, VOCs, CO2) via Airthings Wave, displaying historical trends. Entertainment controls are central, with remotes for the TV and Soundbar, plus power management for the media wall. The view also includes specific controls for the fireplace, air purifier modes, and various lighting scenes, alongside standard occupancy settings. (Uses 2 entities)
  • Office: The Office dashboard handles both workspace environment and IT infrastructure. It offers detailed environmental tracking (Airthings Wave) and lighting prompts. Key features include remote PC control (Audio, Power, Displays) and extensive server monitoring (Proxmox, Home Assistant OS stats, SSD usage). It also manages potential window covers and detailed power consumption for office equipment. (Uses 3 entities)
  • Stairs: This view manages the Stairs area. It features specific control for the WLED strip lighting on the stairs, allowing users to toggle power, adjust brightness, and select WLED presets/effects. Standard occupancy settings and scheduling options are also available. (Uses 1 entities)

Architecture Diagram

The diagram below depicts the straightforward execution of a scene. Whether triggered by a user on a dashboard or by an automation (e.g., sunset), the scene.turn_on service is called. Home Assistant then retrieves the pre-defined state dictionary for that scene and issues parallel control commands to the target entities.

sequenceDiagram
    participant User as 👤 User/Automation
    participant HA as 🏠 Home Assistant
    participant Scene as 🎭 Scene Registry
    participant Lights as 💡 Target Lights

    User->>HA: Call service: scene.turn_on(scene_id)
    HA->>Scene: Lookup Entity States (e.g., "TV Scene")
    Scene-->>HA: Return {Light A: 20%, Light B: Off}

    par Parallel Execution
        HA->>Lights: Set Light A to 20%
        HA->>Lights: Turn Light B Off
    end

Configuration (Source Code)

# ------------------------------------------------------------------------------
# Package: Scenes
# Version: 1.0.0
# Description: Definitions for various lighting scenes (Daylight, Night, Movie, etc.)
# Dependencies: light.* entities
# ------------------------------------------------------------------------------
scene:
  - id: "1581424717324"
    name: Daylight Scene
    entities:
      light.ikea_hallway_1:
        state: "off"
      light.ikea_hallway_2:
        state: "off"
      light.kitchen_ikea_1:
        state: "on"
        brightness: 254
        color_temp_kelvin: 4000
      light.kitchen_ikea_2:
        state: "on"
        brightness: 254
        color_temp_kelvin: 4000
      light.kitchen_ikea_3:
        state: "on"
        brightness: 254
        color_temp_kelvin: 4000
      light.kitchen_sink:
        state: "on"
        brightness: 254
        color_temp_kelvin: 6500
        effect: none
      light.livingroom_light:
        state: "on"
        brightness: 254
        color_temp_kelvin: 6500
        effect: none
      light.stairs_light:
        state: "on"
        brightness: 254
        color_temp_kelvin: 6500
        effect: none

  - id: "1581434276374"
    name: Early Morning Scene
    icon: mdi:weather-sunset-up
    entities:
      light.kitchen_sink:
        state: "on"
        brightness: 128
        color_temp_kelvin: 6500
        effect: none
      light.livingroom_light:
        state: "on"
        brightness: 64
        color_temp_kelvin: 6500
        effect: none

  - id: "1581486599024"
    name: TV Scene
    entities:
      light.ikea_hallway_1:
        state: "off"
      light.ikea_hallway_2:
        state: "off"
      light.livingroom_light:
        state: "on"
        brightness: 46
        color_temp_kelvin: 3000
        effect: none
      light.stairs_light:
        state: "on"
        brightness: 51
        color_temp_kelvin: 3000
        effect: none

  - id: "1581525515761"
    name: Bedroom Mood
    entities:
      light.bedroom_bed_light:
        state: "on"
        brightness: 255
        color_mode: xy
        hs_color: [300.414, 56.863]
        rgb_color: [255, 110, 254]
        xy_color: [0.373, 0.19]
      light.bedroom_ceiling_light:
        state: "off"
    metadata:
      light.bedroom_bed_light:
        entity_only: true
      light.bedroom_ceiling_light:
        entity_only: true

  - id: "1581525625146"
    name: Bedroom Relax
    entities:
      light.bedroom_bed_light:
        state: "on"
        brightness: 255
        color_mode: xy
        hs_color: [30.207, 56.863]
        rgb_color: [255, 183, 110]
        xy_color: [0.491, 0.39]
      light.bedroom_ceiling_light:
        state: "off"
    metadata:
      light.bedroom_bed_light:
        entity_only: true
      light.bedroom_ceiling_light:
        entity_only: true

  - id: "1606678546699"
    name: Floor Light Bright
    entities:
      light.floor_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 4000
        hs_color: [26.812, 34.87]
        rgb_color: [255, 205, 166]
        xy_color: [0.421, 0.364]
    metadata: {}

  - id: "1606678620167"
    name: Floor Light Daylight
    entities:
      light.floor_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 6500
        hs_color: [54.768, 1.6]
        rgb_color: [255, 254, 250]
        xy_color: [0.326, 0.333]

  - id: "1607802679221"
    name: Bedroom Bed Bright
    entities:
      light.bedroom_bed_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 6500
        hs_color: [54.768, 1.6]
        rgb_color: [255, 254, 250]
        xy_color: [0.326, 0.333]
      light.bedroom_ceiling_light:
        state: "off"
    metadata:
      light.bedroom_bed_light:
        entity_only: true
      light.bedroom_ceiling_light:
        entity_only: true

  - id: "1664968673604"
    name: Floor Light Blue
    entities:
      light.floor_light:
        state: "on"
        brightness: 255
        color_mode: xy
        hs_color: [210.364, 96.863]
        rgb_color: [8, 130, 255]
        xy_color: [0.141, 0.137]

  - id: "1664974178898"
    name: Floor Light Night
    entities:
      light.floor_light:
        state: "on"
        brightness: 76
        color_temp_kelvin: 2500
        hs_color: [28.874, 72.522]
        rgb_color: [255, 159, 70]
        xy_color: [0.546, 0.389]

  - id: "1664974204685"
    name: Floor Light Pink
    entities:
      light.floor_light:
        state: "on"
        brightness: 255
        color_mode: xy
        hs_color: [299.754, 95.686]
        rgb_color: [254, 11, 255]
        xy_color: [0.385, 0.155]

  - id: "1664974379307"
    name: Living Room Ceiling Bright
    entities:
      light.living_room_ceiling_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 4760
        hs_color: [26.815, 22.59]
        rgb_color: [255, 223, 197]
        xy_color: [0.382, 0.353]
    metadata:
      light.living_room_ceiling_light:
        entity_only: true

  - id: "1664974407957"
    name: Living Room Ceiling Daylight
    entities:
      light.living_room_ceiling_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 6500
        hs_color: [54.768, 1.6]
        rgb_color: [255, 254, 250]
        xy_color: [0.326, 0.333]
    metadata:
      light.living_room_ceiling_light:
        entity_only: true

  - id: "1664974436190"
    name: Living Room Ceiling Night
    entities:
      light.living_room_ceiling_light:
        state: "on"
        brightness: 51
        color_temp_kelvin: 2440
        hs_color: [29.04, 74.777]
        rgb_color: [255, 156, 64]
        xy_color: [0.554, 0.389]
    metadata:
      light.living_room_ceiling_light:
        entity_only: true

  - id: "1664974470333"
    name: Living Room Ceiling Dim
    entities:
      light.living_room_ceiling_light:
        state: "on"
        brightness: 64
        color_temp_kelvin: 4760
        hs_color: [26.815, 22.59]
        rgb_color: [255, 223, 197]
        xy_color: [0.382, 0.353]
    metadata:
      light.living_room_ceiling_light:
        entity_only: true

  - id: "1664974508232"
    name: Living Room Ceiling Mood
    entities:
      light.living_room_ceiling_light:
        state: "on"
        brightness: 255
        color_mode: xy
        hs_color: [300.331, 70.98]
        rgb_color: [255, 74, 254]
        xy_color: [0.38, 0.17]
    metadata:
      light.living_room_ceiling_light:
        entity_only: true

  - id: "1665121007096"
    name: Daughter Bed Dim
    entities:
      light.Daughter_bed_light:
        state: "on"
        brightness: 127
        color_temp_kelvin: 5000
        hs_color: [27.001, 19.243]
        rgb_color: [255, 228, 205]
        xy_color: [0.372, 0.35]

  - id: "1665121039862"
    name: Daughter Bed Daylight
    entities:
      light.Daughter_bed_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 6500
        hs_color: [54.768, 1.6]
        rgb_color: [255, 254, 250]
        xy_color: [0.326, 0.333]

  - id: "1665121075215"
    name: Daughter Bed Pink
    entities:
      light.Daughter_bed_light:
        state: "on"
        brightness: 255
        color_mode: xy
        hs_color: [300.331, 70.98]
        rgb_color: [255, 74, 254]
        xy_color: [0.38, 0.17]

  - id: "1665121117806"
    name: Daughter Bed Relax
    entities:
      light.Daughter_bed_light:
        state: "on"
        brightness: 51
        color_mode: xy
        hs_color: [30, 43.137]
        rgb_color: [255, 200, 145]
        xy_color: [0.443, 0.379]

  - id: "1665121500547"
    name: Bedroom Bright
    entities:
      light.bedroom_ceiling_light:
        state: "on"
        brightness: 255
      light.bedroom_bed_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 5000
        hs_color: [27.001, 19.243]
        rgb_color: [255, 228, 205]
        xy_color: [0.372, 0.35]

  - id: "1666102359369"
    name: Guest-2 Dim
    entities:
      light.Guest-2_ceiling_light:
        state: "on"
        brightness: 64
        color_temp_kelvin: 4000
        hs_color: [26.812, 34.87]
        rgb_color: [255, 205, 166]
        xy_color: [0.421, 0.364]
    metadata:
      light.Guest-2_ceiling_light:
        entity_only: true

  - id: "1666102385906"
    name: Guest-2 Bright
    entities:
      light.Guest-2_ceiling_light:
        state: "on"
        brightness: 255
        color_temp_kelvin: 4000
        hs_color: [26.812, 34.87]
        rgb_color: [255, 205, 166]
        xy_color: [0.421, 0.364]
    metadata:
      light.Guest-2_ceiling_light:
        entity_only: true

  - id: "1666102425014"
    name: Guest-2 Night
    entities:
      light.Guest-2_ceiling_light:
        state: "on"
        brightness: 13
        color_temp_kelvin: 2200
        hs_color: [29.79, 84.553]
        rgb_color: [255, 146, 39]
        xy_color: [0.579, 0.388]
    metadata:
      light.Guest-2_ceiling_light:
        entity_only: true