This Home Assistant automation blueprint lets you control two groups of lights using a dual-button MQTT switch.
Each button toggles one or more lights. Long press gradually increases brightness. Great for bedside lamps, living rooms, or any setup with intuitive tactile control.
Features
Single Left Press – Toggle left lights (user-defined brightness)
Single Right Press – Toggle right lights (user-defined brightness)
Simultaneous Press – Toggle both left and right lights
Hold Left – Gradually increase brightness on left lights
Hold Right – Gradually increase brightness on right lights
Inputs
MQTT Switch
– a device with dual-button actions (Zigbee or Wi-Fi via MQTT)Left Light
– 1 or more lights controlled by the left buttonRight Light
– 1 or more lights controlled by the right buttonLeft Brightness
– brightness (1–100%) when turning on left lightsRight Brightness
– brightness (1–100%) when turning on right lights
How to Use
- Go to Settings > Automations & Scenes > Blueprints
- Click Import Blueprint and paste this URL:
https://github.com/Arn0V1dal/home-assistant-dual-mqtt-switch/blob/main/dual_mqtt_switch_room_lights.yaml
- Create a new automation using the blueprint
or directly click here :
YAML Code
You can also view or download the raw YAML directly here:
dual_mqtt_switch_room_lights.yaml
License
MIT License – free to use, modify, and share
Credits
Created by Arnaud