What it exposes
| Feature | Property | Values | Control |
|---|---|---|---|
| Allow double click | allow_double_click | — | settable |
| LED indication | led_indicator_on_enable | — | settable |
| Hue | led_indicator_on_h | ° · 0…359 | settable |
| Saturation | led_indicator_on_s | 0…254 | settable |
| Brightness | led_indicator_on_b | 1…254 | settable |
| LED indication | led_indicator_off_enable | — | settable |
| Hue | led_indicator_off_h | ° · 0…359 | settable |
| Saturation | led_indicator_off_s | 0…254 | settable |
| Brightness | led_indicator_off_b | 1…254 | settable |
| Identify | identify | identify | settable |
| On / off | state | — | settable |
| After power loss | power_on_behavior | off, on, toggle, previous | settable |
| Relay mode | relay_mode | control_relay, decoupled | settable |
| Child lock | child_lock | — | settable |
| Serial Number | serial_number | — | read only |
| Resets count | resets_count | — | read only |
| Uptime | uptime | s | read only |
| Button clicks count 1 | button_clicks_count_1 | — | read only |
| Button clicks count 2 | button_clicks_count_2 | — | read only |
| Relay switches count 1 | relay_switches_count_1 | — | read only |
| Action (button press) | action | hold, single, double | read only |
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:
{
"allow_double_click": false,
"led_indicator_on_enable": false,
"led_indicator_on_h": 180,
"led_indicator_on_s": 127,
"led_indicator_on_b": 128,
"led_indicator_off_enable": false,
"led_indicator_off_h": 180,
"led_indicator_off_s": 127,
"led_indicator_off_b": 128,
"state": "ON",
"power_on_behavior": "off",
"relay_mode": "control_relay",
"child_lock": false,
"resets_count": 0,
"linkquality": 120
}
Send commands to zigbee2mqtt/my_device/set:
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"allow_double_click":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"led_indicator_on_enable":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"led_indicator_off_enable":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"power_on_behavior":"on"}'
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: "Off at night"
mode: single
triggers:
- trigger: time
at: "23:30:00"
actions:
- action: switch.turn_off
target:
entity_id: switch.my_device
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.