What it exposes
| Feature | Property | Values | Control |
|---|---|---|---|
| Switch (button_1) | state_button_1 | — | settable |
| Switch (button_2) | state_button_2 | — | settable |
| Switch (button_3) | state_button_3 | — | settable |
| Switch (button_4) | state_button_4 | — | settable |
| Switch (button_5) | state_button_5 | — | settable |
| Switch (button_6) | state_button_6 | — | settable |
| Switch (all) | state_all | — | settable |
| Energy | energy | kWh | read only |
| Power | power | W | read only |
| Current | current | A | read only |
| Voltage | voltage | V | read only |
| Child lock | child_lock | — | settable |
| Backlight | backlight | — | settable |
| Indicator | indicator | — | settable |
| After power loss | power_on_behavior | off, on, previous | settable |
| After power loss | power_on_behavior_1 | off, on, previous | settable |
| After power loss | power_on_behavior_2 | off, on, previous | settable |
| After power loss | power_on_behavior_3 | off, on, previous | settable |
| After power loss | power_on_behavior_4 | off, on, previous | settable |
| After power loss | power_on_behavior_5 | off, on, previous | settable |
| After power loss | power_on_behavior_6 | off, on, previous | settable |
| Color (button_1) | color_button_1 | — | read only |
| On brightness (button_1) | brightness_on_button_1 | % · 0…100 | settable |
| Off brightness (button_1) | brightness_off_button_1 | % · 0…100 | settable |
| Color (button_2) | color_button_2 | — | read only |
| On brightness (button_2) | brightness_on_button_2 | % · 0…100 | settable |
| Off brightness (button_2) | brightness_off_button_2 | % · 0…100 | settable |
| Color (button_3) | color_button_3 | — | read only |
| On brightness (button_3) | brightness_on_button_3 | % · 0…100 | settable |
| Off brightness (button_3) | brightness_off_button_3 | % · 0…100 | settable |
| Color (button_4) | color_button_4 | — | read only |
| On brightness (button_4) | brightness_on_button_4 | % · 0…100 | settable |
| Off brightness (button_4) | brightness_off_button_4 | % · 0…100 | settable |
| Color (button_5) | color_button_5 | — | read only |
| On brightness (button_5) | brightness_on_button_5 | % · 0…100 | settable |
| Off brightness (button_5) | brightness_off_button_5 | % · 0…100 | settable |
| Color (button_6) | color_button_6 | — | read only |
| On brightness (button_6) | brightness_on_button_6 | % · 0…100 | settable |
| Off brightness (button_6) | brightness_off_button_6 | % · 0…100 | settable |
MQTT: state and commands
Zigbee2MQTT publishes the device state to zigbee2mqtt/my_device (my_device is the name you give the device). An example message:
{
"state_button_1": "ON",
"state_button_2": "ON",
"state_button_3": "ON",
"state_button_4": "ON",
"state_button_5": "ON",
"state_button_6": "ON",
"state_all": "ON",
"energy": 3.21,
"power": 12.4,
"current": 0.06,
"voltage": 230,
"child_lock": false,
"backlight": false,
"indicator": false,
"linkquality": 120
}
Send commands to zigbee2mqtt/my_device/set:
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_1":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_2":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_3":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_4":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_5":"TOGGLE"}'
Watch the topics live from the browser: MQTT client.
Home Assistant automation example
Zigbee2MQTT creates Home Assistant entities from the device name. If it is called my_device, an automation in automations.yaml can look like this:
- alias: "Turn off when idle"
mode: single
triggers:
- trigger: numeric_state
entity_id: sensor.my_device_power
below: 2
for: "00:15:00"
actions:
- action: switch.turn_off
target:
entity_id: switch.my_device_button_1
Check the YAML: YAML checker.
How to pair it
- In Zigbee2MQTT click Permit join.
- Put the device in pairing mode: usually a long press of the reset button (5–10 s) until the LED blinks; bulbs: switch the power off and on 5–6 times.
- Keep the device close to the coordinator or a router while pairing.
- Give it a clear name: MQTT topics and Home Assistant entities are built from it.
Exact procedure and model notes: the device page in the Zigbee2MQTT docs. No coordinator yet: coordinator picker.