What it exposes
| Feature | Property | Values | Control |
|---|---|---|---|
| Switch (buzzer) | state_buzzer | — | settable |
| Switch (heater) | state_heater | — | settable |
| Switch (led_red) | state_led_red | — | settable |
| Switch (led_green) | state_led_green | — | settable |
| Illuminance | illuminance | lx | read only |
| Temperature | temperature | °C | read only |
| Humidity | humidity | % | read only |
| Motion | occupancy | — | read only |
| CO₂ | co2 | ppm | read only |
| Noise level | noise_level | dBA | read only |
| Noise | noise | — | read only |
| Noise threshold | noise_threshold | dBA · 0…150 | settable |
| Noise timeout | noise_timeout | s · 0…2000 | settable |
| Status led | status_led | — | settable |
| Connectivity | connectivity | offline, online, firmware_update, component_update | read only |
| Modbus slave id | modbus_slave_id | — | read only |
| Serial number | serial_number | — | read only |
| Fw version | fw_version | — | read only |
| Fw signature | fw_signature | — | read only |
| Boot version | boot_version | — | read only |
| Component version | component_version | — | read only |
| Component signature | component_signature | — | read only |
| Temperature offset | temperature_offset | °C · -10…10 | settable |
| Occupancy level | occupancy_level | — | read only |
| Occupancy sensitivity | occupancy_sensitivity | 0…2000 | settable |
| Occupancy timeout | occupancy_timeout | s · 0…2000 | settable |
| VOC | voc | µg/m³ | read only |
| Ir rom id (ir) | ir_rom_id_ir | 0…79 | settable |
| Ir action (ir) | ir_action_ir | stop, learn_ram, learn_rom, play_ram, play_rom, clear_all_rom | 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_buzzer": "ON",
"state_heater": "ON",
"state_led_red": "ON",
"state_led_green": "ON",
"illuminance": 120,
"temperature": 21.6,
"humidity": 46.2,
"occupancy": false,
"co2": 640,
"noise_level": 0,
"noise": false,
"noise_threshold": 75,
"noise_timeout": 1000,
"status_led": false,
"linkquality": 120
}
Send commands to zigbee2mqtt/my_device/set:
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_buzzer":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_heater":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_led_red":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_led_green":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"status_led":true}'
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_buzzer
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.