💡 Dual MQTT Switch – Room Lights

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.

:sparkles: Features

  • :radio_button: Single Left Press – Toggle left lights (user-defined brightness)
  • :radio_button: Single Right Press – Toggle right lights (user-defined brightness)
  • :radio_button: Simultaneous Press – Toggle both left and right lights
  • :chart_with_upwards_trend: Hold Left – Gradually increase brightness on left lights
  • :chart_with_upwards_trend: Hold Right – Gradually increase brightness on right lights

:control_knobs: 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 button
  • Right Light – 1 or more lights controlled by the right button
  • Left Brightness – brightness (1–100%) when turning on left lights
  • Right Brightness – brightness (1–100%) when turning on right lights

:hammer_and_wrench: How to Use

  1. Go to Settings > Automations & Scenes > Blueprints
  2. Click Import Blueprint and paste this URL:
https://github.com/Arn0V1dal/home-assistant-dual-mqtt-switch/blob/main/dual_mqtt_switch_room_lights.yaml
  1. Create a new automation using the blueprint

or directly click here :

Import Blueprint

:page_facing_up: YAML Code

You can also view or download the raw YAML directly here:
:link: dual_mqtt_switch_room_lights.yaml


:memo: License

MIT License – free to use, modify, and share


:raised_hands: Credits

Created by Arnaud

Hello Arnaud,

Thanks for contributing to the community with a new Blueprint.
I have a suggestion for you. Many people who are not familiar with directory structures will have problems installing this without the Home Assistant MY tools.
Adding a MY link for this Blueprint to your top post would help them a lot.
Here is the link to make that.
Create a link – My Home Assistant

Thanks for your suggestion, just done !