What it exposes
| Feature | Property | Values | Control |
|---|---|---|---|
| Meter number | meter_number | — | read only |
| On / off | state | — | settable |
| Alarm | alarm | — | read only |
| Trip | trip | — | settable |
| Child lock | child_lock | — | settable |
| After power loss | power_on_behavior | off, on, previous | settable |
| Countdown timer | countdown_timer | s · 0…86400 | settable |
| Voltage rms | voltage_rms | V | read only |
| Current | current | A | read only |
| Current average | current_average | A | read only |
| Power | power | W | read only |
| Voltage | voltage | V | read only |
| Energy | energy | kWh | read only |
| Temperature | temperature | °C | read only |
| Power | power_l1 | W | read only |
| Power | power_l2 | W | read only |
| Power | power_l3 | W | read only |
| Energy consumed | energy_consumed | kWh | read only |
| Clear device data | clear_device_data | — | settable |
| Self test auto days | self_test_auto_days | d | read only |
| Self test auto hours | self_test_auto_hours | h | read only |
| Self test auto | self_test_auto | — | read only |
| Self test | self_test | — | read only |
| Over temperature threshold | over_temperature_threshold | °C · 30…100 | settable |
| Over temperature trip | over_temperature_trip | — | settable |
| Over temperature alarm | over_temperature_alarm | — | settable |
| Over voltage threshold | over_voltage_threshold | V · 200…300 | settable |
| Over voltage trip | over_voltage_trip | — | settable |
| Over voltage alarm | over_voltage_alarm | — | settable |
| Under voltage threshold | under_voltage_threshold | V · 100…215 | settable |
| Under voltage trip | under_voltage_trip | — | settable |
| Under voltage alarm | under_voltage_alarm | — | settable |
| Over current threshold | over_current_threshold | A · 1…100 | settable |
| Over current trip | over_current_trip | — | settable |
| Over current alarm | over_current_alarm | — | settable |
| Over leakage current threshold | over_leakage_current_threshold | mA · 10…100 | settable |
| Over leakage current trip | over_leakage_current_trip | — | settable |
| Over leakage current alarm | over_leakage_current_alarm | — | 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": false,
"trip": false,
"child_lock": false,
"power_on_behavior": "off",
"countdown_timer": 43200,
"voltage_rms": 0,
"current": 0.06,
"current_average": 0,
"power": 12.4,
"voltage": 230,
"energy": 3.21,
"temperature": 21.6,
"power_l1": 12.4,
"power_l2": 12.4,
"linkquality": 120
}
Send commands to zigbee2mqtt/my_device/set:
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"trip":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"child_lock":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"power_on_behavior":"on"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"over_temperature_trip":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: "Room too warm"
mode: single
triggers:
- trigger: numeric_state
entity_id: sensor.my_device_temperature
above: 26
for: "00:10:00"
actions:
- action: notify.notify
data:
message: "Temperature above 26 °C"
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.