Hi everyone!
Here’s a simple but powerful MQTT-based blueprint that lets you control a dimmable light using a single Aqara Wireless Mini Switch (WXKG11LM) with Zigbee2MQTT.
What It Does
Single click → Toggle light on/off
Double click → Increase brightness by 10%
If brightness ≥ 100%, it loops back to 10%
Long press → Toggle between low brightness (10%) and high brightness (80%)
Requirements
- Home Assistant
- Zigbee2MQTT
- An Aqara WXKG11LM button (or similar single-button device)
- A dimmable light
- MQTT integration enabled and working in HA
Import Blueprint
Inputs
- MQTT Topic → e.g.
zigbee2mqtt/button_remote_ishai_bedside
- Target Light → Any dimmable light entity
How It Works
- Brightness is calculated in percentages (converted to 0–255 scale)
- Double click will go: 10% → 20% → 30% … → 100% → 10% → repeat
- Long press toggles between 10% and 80% for quick mood changes
Tips
- Works great on bedside lamps or simple smart bulbs
- Based entirely on MQTT topic and payload (no need for hidden entities)
- Easily adaptable for other single-button Zigbee2MQTT remotes