Configuring Zigbee Direct Binding Between Inovelli Blue Switches and Philips Hue in Zigbee2MQTT
Nothing pulls you out of a smart home dream faster than tapping a light switch and waiting a beat for the bulbs to react. For years my living room TV lighting relied on an older Wi-Fi wall switch that had to talk to Home Assistant, run its logic, and send signals back over the local network to dim my Philips Hue bulbs. It worked, but that slight delay bothered me every single evening. And if anyone cut physical power at the wall, the smart bulbs vanished from the network entirely.
So I swapped the legacy switch for an Inovelli Blue Series two in one switch, which runs Zigbee and unlocks one of the coolest hidden superpowers in home automation. Normally a paddle tap travels to the server, an automation runs, and an instruction goes back out to the bulbs. Direct binding skips that middleman: inside Zigbee2MQTT, you bind the switch straight to a group of Hue bulbs using the standard on off and level control clusters. Tap the paddle or hold it to dim, and the bulbs answer over the air in under ten milliseconds.
The best part is smart bulb mode. With decoupled mode enabled, the switch keeps uninterrupted mains power flowing to the fixture, so the Hue bulbs stay online around the clock and the relay never cuts their power. Even when my Home Assistant server reboots, the wall switch keeps working like a native electrical switch, which makes the whole household calmer and the setup far more forgiving. It also means a houseguest can flip the lights without any app, which is exactly the kind of boring reliability I want from a wall switch.
Of course, smart home tinkering rarely happens without a puzzle. I wanted the auxiliary button on the Inovelli to toggle Movie Mode for the home theater, but the bulbs flickered and shut off instead of sliding into a warm ambient red. The logs showed a race condition, with the direct binding status updates overtaking the Home Assistant scene commands. Fixing it was deeply satisfying: I added a two hundred millisecond sequencing delay to the Movie Mode controller so the switch state could settle before the color scene fired.
Now the auxiliary button drops the overhead lighting into a theater glow without a single dropped packet or unexpected shutoff. The beat of waiting that used to bug me every evening in the living room is simply gone, and my family noticed the difference within a single day. The steps below walk you through the same binding on your own gear.
Prerequisites
Before configuring bindings, confirm that both the Inovelli Blue switch and the target Philips Hue bulbs are joined to the same Zigbee2MQTT coordinator network (direct Zigbee binding cannot cross between a separate Hue Bridge and Zigbee2MQTT), keep a Git repository (on GitHub, GitLab, or self-hosted GitLab) to back up your Zigbee2MQTT configuration.yaml and Home Assistant automations, and optionally use an AI coding assistant such as Antigravity, Claude Code, or Codex when auditing MQTT payloads.
- Zigbee2MQTT (
1.40or newer) backed by an MQTT broker (such as Mosquitto) and a TICC2652Por Silicon LabsEFR32MG21coordinator. - An Inovelli Blue Series 2-in-1 Switch (
VZM31-SN) wired to mains and paired in Zigbee2MQTT (for example,living_room_tv_switch). - One or more Philips Hue Zigbee bulbs paired directly to the same Zigbee2MQTT network (
living_room_hue_left,living_room_hue_right). - Home Assistant connected to Mosquitto via the MQTT integration.
Step 1: Lock Continuous Mains Voltage with Smart Bulb Mode
Before binding radio clusters, lock the physical switch output so pressing the bottom paddle never cuts 120V mains power to the Hue bulbs. In Zigbee2MQTT, open living_room_tv_switch -> Exposes (or publish directly via mosquitto_pub) and set smartBulbMode to Smart Bulb Mode along with outputMode set to Dimmer:
mosquitto_pub -h <mqtt-broker-ip> -u <mqtt-user> -P <mqtt-pass> \
-t "zigbee2mqtt/living_room_tv_switch/set" \
-m '{"outputMode": "Dimmer", "smartBulbMode": "Smart Bulb Mode", "ledBarScaling": "Gen3"}'
Verify in the Zigbee2MQTT Exposes tab that smartBulbMode reads Smart Bulb Mode. Tapping the paddle down will now change the switch's internal logical level and LED bar while keeping continuous mains voltage supplied to the Hue fixtures.
Step 2: Create a Native Zigbee Group for Synchronized Multi-Bulb Dimming
Binding a switch individually to three or four separate bulbs sends sequential unicast packets, producing a staggered "popcorn" dimming effect. Instead, create a native Zigbee group inside Zigbee2MQTT so a single groupcast packet dims every Hue bulb in unison, and enable optimistic: true so the group state tracks cleanly:
mosquitto_pub -h <mqtt-broker-ip> -u <mqtt-user> -P <mqtt-pass> \
-t "zigbee2mqtt/bridge/request/group/add" \
-m '{"friendly_name": "Living_Room_Hue_Bulbs", "id": 104}'
mosquitto_pub -h <mqtt-broker-ip> -u <mqtt-user> -P <mqtt-pass> \
-t "zigbee2mqtt/bridge/request/group/members/add" \
-m '{"group": "Living_Room_Hue_Bulbs", "device": "living_room_hue_left", "endpoint": 11}'
mosquitto_pub -h <mqtt-broker-ip> -u <mqtt-user> -P <mqtt-pass> \
-t "zigbee2mqtt/bridge/request/group/members/add" \
-m '{"group": "Living_Room_Hue_Bulbs", "device": "living_room_hue_right", "endpoint": 11}'
Note that Philips Hue bulbs expose lighting control on Endpoint 11 (0x0B), which Zigbee2MQTT maps automatically if you add members from the Groups web UI.
Step 3: Bind Inovelli Endpoint 2 Directly to the Zigbee Group
This is the critical detail that trips up most first-time setups: on the Inovelli VZM31-SN, Endpoint 1 handles incoming status reporting to the coordinator, while Endpoint 2 is the outbound group/device binding source for genOnOff and genLevelCtrl paddle commands. Bind Endpoint 2 of the switch directly to Living_Room_Hue_Bulbs:
mosquitto_pub -h <mqtt-broker-ip> -u <mqtt-user> -P <mqtt-pass> \
-t "zigbee2mqtt/bridge/request/device/bind" \
-m '{
"from": "living_room_tv_switch/2",
"to": "Living_Room_Hue_Bulbs",
"clusters": ["genOnOff", "genLevelCtrl"]
}'
Open living_room_tv_switch -> Bind in the Zigbee2MQTT UI and confirm a row shows Source Endpoint 2 bound to Destination Group Living_Room_Hue_Bulbs with both OnOff and LevelCtrl checked. To keep the switch's side LED bar synchronized whenever Home Assistant changes the Hue group brightness in software, also add an automation or reverse reporting rule syncing light.living_room_hue_bulbs brightness back to light.living_room_tv_switch.
Test hardware independence right away: stop your Home Assistant container (docker stop homeassistant), walk over to the wall switch, tap on/off, and hold the paddle to dim up and down. Both Hue bulbs will ramp smoothly with zero hub involvement, then start Home Assistant back up.
Step 4: Sequence Aux-Button Scene Triggers Without Race Conditions
The small auxiliary config button next to the top paddle fires config_single over MQTT without triggering the bound Endpoint 2 dimmer directly, making it ideal for toggling a Home Assistant "Movie Mode" scene. If a user brushes the main paddle or triggers rapid state updates right as a color transition scene fires, however, late-arriving Zigbee status frames can race against the scene transition and turn the bulbs off unexpectedly.
Add a 200 ms settle delay in your Home Assistant automation before applying the color scene so any in-flight Zigbee status report clears first:
automation:
- id: living_room_inovelli_aux_movie_mode
alias: Living Room Switch Aux - Toggle Movie Mode
mode: restart
triggers:
- trigger: mqtt
topic: "zigbee2mqtt/living_room_tv_switch/action"
payload: "config_single"
actions:
- delay:
milliseconds: 200
- choose:
- conditions:
- condition: state
entity_id: media_player.living_room_plex_client
state: "playing"
sequence:
- action: light.turn_on
target:
entity_id: light.living_room_hue_bulbs
data:
brightness_pct: 12
kelvin: 2200
transition: 2
default:
- action: light.turn_on
target:
entity_id: light.living_room_hue_bulbs
data:
brightness_pct: 75
kelvin: 2700
transition: 1
Tap the small auxiliary button during evening playback and confirm the Hue group transitions cleanly to 12% warm glow without flickering or dropping off.
Replicate This Build with AI
If you use an AI coding agent such as Antigravity, Claude Code, Codex, or Gemini CLI, you can paste this prompt to recreate the same functional prototype on your own gear. Replace each placeholder in angle brackets with your own values before you run it.
You are a coding agent helping me configure Zigbee direct binding in Zigbee2MQTT on <zigbee2mqtt-host>. Do not change anything until you have shown me the planned edits.
My setup:
- Zigbee2MQTT <version> with an MQTT broker at <mqtt-broker-host>:<mqtt-port>
- An Inovelli Blue Series 2-in-1 switch (VZM31-SN) named <switch-friendly-name>
- Philips Hue Zigbee bulbs named <bulb-1-friendly-name> and <bulb-2-friendly-name>, joined to the same Zigbee2MQTT network
- Home Assistant connected to the same broker, with a scene named <movie-scene-name>
Do the following and show each change as a diff:
1. Set the switch to Smart Bulb Mode so the relay stays on and the bulbs keep constant mains power.
2. Create a Zigbee2MQTT group named <group-name> containing both bulbs.
3. Bind Endpoint 2 of <switch-friendly-name> to <group-name> for the genOnOff and genLevelCtrl clusters.
4. Create a Home Assistant automation triggered by the config_single action of the switch that waits 200 milliseconds and then activates <movie-scene-name>, so the scene never races the binding status updates.
Constraints: keep every name as a placeholder in anything you write to a shared repository. Never print MQTT credentials.
Verification: publish an on command and a brightness command to the group from the MQTT topic for <group-name>, tap the paddle, and confirm both bulbs respond together. Then stop the Home Assistant container briefly and confirm the paddle still dims the bulbs. Report what you ran and what you observed.
Hardware & Gear Used in This Guide
- Smart wall switch: Inovelli Blue Series 2-in-1 Zigbee Dimmer/Switch (
VZM31-SN) with neutral wire connection - Smart bulbs: Philips Hue White and Color Ambiance A19 Zigbee bulbs joined directly to Zigbee2MQTT
- Zigbee coordinator: Ethernet or USB TI CC2652P coordinator stick on a shielded USB extension cable
- Automation host: Mini-PC running Zigbee2MQTT, Mosquitto MQTT broker, and Home Assistant
Taking It to the Next Level
- Map the config_double and config_held actions to room-wide nightlight scenes, or to LED notification bar colors such as pulsing amber when a garage door stays open.
- Bind a second switch in the hallway to the same Zigbee group so two paddles control the same bulbs, then check the Zigbee2MQTT network map for link quality before you trust it.
- Tune the sequencing delay with real data. Watch the MQTT topics while you change the 200 ms value up and down, and keep the shortest value that never shuts the bulbs off.
- Compare Zigbee direct binding against Matter-over-Thread button Blueprints in Pairing IKEA KAJPLATS and BILRESA Devices Over Matter-over-Thread and Building a Home Assistant Blueprint.
Have you set up direct binding on your own smart switches yet, and which room would you try it in first?
Later,
SteveO
