What it exposes
| Feature | Property | Values | Control |
|---|---|---|---|
| On / off | state | — | settable |
| Identify | identify | identify | settable |
| Power failure mode | power_failure_mode | last_state, off, on, blink | settable |
| Prev state | prev_state | — | read only |
| On timer | on_timer | s · 0…3600 | settable |
| Enable pre on delay | enable_pre_on_delay | — | settable |
| Pre on delay | pre_on_delay | s · 0…3600 | settable |
| Enable pre off delay | enable_pre_off_delay | — | settable |
| Pre off delay | pre_off_delay | s · 0…3600 | settable |
| Pulse duration | pulse_duration | ms · 20…65534 | settable |
| Time type | time_type | seconds, minutes | settable |
| Long on duration | long_on_duration | s · 0…4233600 | settable |
| Operating mode | operating_mode | timer, staircase, pulse | settable |
| Enable stop announce | enable_stop_announce | — | settable |
| Stop announce time | stop_announce_time | s · 0…4233600 | settable |
| Enable deaf | enable_deaf | — | settable |
| Deaf blink amount | deaf_blink_amount | 0…20 | settable |
| Deaf blink time | deaf_blink_time | 100…20000 | settable |
| Enable blink | enable_blink | — | settable |
| Blink amount | blink_amount | 0…20 | settable |
| Blink on time | blink_on_time | 0…4233600 | settable |
| Blink off time | blink_off_time | 0…4233600 | settable |
| State after blink | state_after_blink | previous, off, on, infinite | settable |
| Enable nc command | enable_nc_command | — | settable |
| Move to position command | move_to_position_prop | — | read only |
| Pulse command | pulse_prop | — | read only |
| Blink command | blink_prop | — | read only |
| Deaf blink command | deaf_blink_prop | — | read only |
| Long on command | long_on_command | longOnAction | settable |
| Reset to factory settings | reset_to_factory_settings | factory_reset, configuration_reset, network_reset | settable |
| Relaunch ble advert | relaunch_ble_advert | relaunch_ble_advert | settable |
| Input mode | input_mode | unknown, push_button, switch, relay, fp_in | settable |
| Contact mode | contact_mode | nc, no | settable |
| Last local command state | last_local_command_state | — | read only |
| Last bp connect state | last_bp_connect_state | — | read only |
| Send press | send_press | SendPress | settable |
| Send release | send_release | SendRelease | settable |
| Select input mode | select_input_mode | unknown, push_button, switch, relay, fp_in | settable |
| Enable short press | enable_short_press | — | settable |
| Enable long press | enable_long_press | — | settable |
| Long press duration | long_press_duration | ms · 0…5000 | settable |
| Time between press | time_between_press | ms · 100…600 | settable |
| Enable R12M long press | enable_R12M_long_press | — | settable |
| Enable local config lock | enable_local_config_lock | — | 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": "ON",
"power_failure_mode": "last_state",
"prev_state": false,
"on_timer": 1800,
"enable_pre_on_delay": false,
"pre_on_delay": 1800,
"enable_pre_off_delay": false,
"pre_off_delay": 1800,
"pulse_duration": 32777,
"time_type": "seconds",
"long_on_duration": 2116800,
"operating_mode": "timer",
"enable_stop_announce": false,
"stop_announce_time": 2116800,
"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 '{"power_failure_mode":"off"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"enable_pre_on_delay":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"enable_pre_off_delay":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"time_type":"minutes"}'
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.