Last Updated:

Enhanced Home Lighting Control with MQTT Scenes

S.C.O.R.E.ConvenienceDevice Control

Overview

With the addition of MQTT support for scenes, homeowners can now automate and customize their lighting environments more effectively. This capability allows for the creation of specific lighting presets that can be easily activated, enhancing convenience and ambiance in living spaces.

Convenience icon

Benefits

  • Easily switch between different lighting moods for various activities like reading, entertaining, or relaxing.
  • Reduce the need for multiple app interactions by controlling multiple lights with a single command.
  • Improve energy efficiency by automating lighting based on occupancy or time of day.

Intent

The purpose of this capability is to streamline lighting control by allowing users to define and activate specific scenes through MQTT. The outcome is a more personalized and efficient home lighting experience.

Preconditions

  • Home Assistant configured with MQTT integration.
  • Compatible smart lighting devices connected to the MQTT broker.
  • User-defined scenes created within Home Assistant.
  • Home Assistant installed and configured.
  • Integration available and authenticated: Zigbee2MQTT.
  • Device installed and reachable: Door and Window Sensors.

Actors

  • Homeowner activating a scene
  • Family members enjoying customized lighting
  • Guests experiencing a welcoming atmosphere

Trigger

The capability is triggered when a specific MQTT message is published, which corresponds to a defined lighting scene.

Workflow Diagram

flowchart TD
    A[MQTT Message Received] -->|check| B{{Scene Defined?}}
    B -->|Yes| C[Activate Lighting Scene]
    C --> D[Lighting Adjusted]
    B -->|No| E[Exit without Action]

Workflow Description

1. Define Lighting Scene

Homeowner creates a lighting scene in Home Assistant, specifying which lights to control and their brightness or color.

2. Publish MQTT Message

The homeowner or an capability system publishes an MQTT message that corresponds to the defined lighting scene.

3. Receive MQTT Message

Home Assistant listens for the MQTT message and processes it to check if the scene is defined.

4. Activate Scene

If the scene is defined, Home Assistant sends commands to the respective lights, adjusting their settings as specified.

5. Scene Confirmation

Homeowners can visually confirm that the lighting scene has been successfully activated and adjust if necessary.

Postconditions

The lighting in the home reflects the selected scene, providing the desired ambiance and functionality.

Optional Enhancements

  • Integrate voice control through Amazon Echo Devices or Google Nest Mini for hands-free scene activation.
  • Add scheduling capabilities to automatically activate scenes based on time or events.
  • Implement energy monitoring to track the power usage of different lighting scenes.

Recommended Components

Recommended ApplicationsRecommended IntegrationsRecommended Devices
Home AssistantZigbee2MQTT, Z-Wave JSDoor and Window Sensors, Lutron Caseta Dimmer

Source Examples