What it exposes
| Feature | Property | Values | Control |
|---|---|---|---|
| Light | state, brightness | on / off, brightness | settable |
| Identify | identify | identify | 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 |
| Power failure mode | power_failure_mode | last_state, off, on, blink | settable |
| Current position | current_position | — | read only |
| Memory position | memory_position | — | read only |
| Enable ramp up | enable_ramp_up | — | settable |
| Ramp up | ramp_up | 0…86400000 | settable |
| Enable ramp down | enable_ramp_down | — | settable |
| Ramp down | ramp_down | 0…86400000 | settable |
| Ramp continuous time | ramp_continuous_time | 0…86400000 | settable |
| Step up | step_up | 0…100 | settable |
| Low dim limit | low_dim_limit | 0…100 | settable |
| High dim limit | high_dim_limit | 0…100 | settable |
| Nightlight starting delay | nightlight_starting_delay | 0…4294967294 | settable |
| Nightlight starting brightness | nightlight_starting_brightness | 0…100 | settable |
| Nightlight ending brightness | nightlight_ending_brightness | 0…100 | settable |
| Nightlight ramp time | nightlight_ramp_time | 0…86400000 | settable |
| Nightlight on time | nightlight_on_time | 0…4233600 | settable |
| Favorite position 1 | favorite_position_1 | 0…100 | settable |
| Favorite position 2 | favorite_position_2 | 0…100 | settable |
| Favorite position 3 | favorite_position_3 | 0…100 | settable |
| Step controller mode | step_controller_mode | — | settable |
| Memory position mode | memory_position_mode | — | settable |
| Step down | step_down | 0…100 | settable |
| Step continuous | step_continuous | 0…100 | settable |
| Step nightlight | step_nightlight | 0…100 | settable |
| Dimmer loop command | dimmer_prop | — | read only |
| Dimmer Up down command | dimmer_Up_down_command | dimUp, dimDown | settable |
| Dimmer min max command | dimmer_min_max_prop | — | read only |
| Dimmer move to favorite | dimmer_move_to_favorite | moveToFavorite1, moveToFavorite2, moveToFavorite3 | settable |
| Dimmer start nightlight command | dimmer_start_nightlight_command | startNightLightModeCurrent | settable |
| Dimmer start nightlight custom command | dimmer_start_nightlight_custom_prop | — | read only |
| 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",
"brightness": 180,
"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":"ON","brightness":180}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state":"OFF","transition":2}'
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: "Light at sunset"
mode: single
triggers:
- trigger: sun
event: sunset
offset: "-00:15:00"
actions:
- action: light.turn_on
target:
entity_id: light.my_device
data:
brightness_pct: 70
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.