This blueprint allows you to automate scene selection and manage lights efficiently using button presses, motion sensors, and configurable action types. It replaced a few dozen automatons for my single button scene selection with a few bells and whistles. It’s highly opinionated but I still hope someone finds it useful.
Here are the updated features and inputs required to get started:
Features:
- Scene Selection: Use a button device to cycle through scenes.
- Light Management: Turn off lights in selected areas or specific lights on a configurable action (double press or hold).
- Automatic Turn Off: Configure a delay to turn off lights automatically.
- Occupancy Monitoring: Use a motion sensor to monitor room occupancy and turn off lights after a specified duration.
- Configurable Special Action: Execute an optional automation, script, or scene on a configurable action (double press or hold).
Inputs:
- Turn Off Action: Configure the action type for turning off lights (double press or hold).
- Special Action Type: Select the action type for executing a special action (hold or double press).
- Scene Selection Helper: Input helper for scene IDs.
- Button Devices: Button devices for triggering scene selection.
- Target Areas for Light Control: Areas to turn off lights on the configured action.
- Target Lights for Control: Specific lights to turn off on the configured action or automatically.
- Automatic Turn Off Delay: Delay before lights turn off automatically.
- Special Action: Optional automation, script, or scene to execute on a configured action.
- Motion Sensor: Sensor to monitor occupancy.
- Motion Sensor Duration: Time for the motion sensor to stay clear to turn off the lights.
Triggers:
- Single Press: Cycle to the next scene and activate it.
- Configurable Turn Off Action: Turn off lights in the target areas or specified lights.
- Configurable Special Action: Execute the special action (automation, script, or scene) on the specified action type.
- Occupancy: Turn off lights when no motion is detected for the specified duration.
Blog post & Gist: Home Assistant Blueprint: Room Scene Selector | Vladimir Cvetić | Vault of Vital Nonsense
UPDATES:
- Implemented a feature to reset the input selector each time the lights are turned off, ensuring the scene selection starts from the first option in the list.
- Applied this reset logic to both button-triggered light-off actions and automatic light-off via occupancy sensors, improving consistency in scene management.