What it exposes
| Feature | Property | Values | Control |
|---|---|---|---|
| Switch1 | switch1 | — | settable |
| Switch2 | switch2 | — | settable |
| Switch3 | switch3 | — | settable |
| Switch4 | switch4 | — | settable |
| Switch5 | switch5 | — | settable |
| Switch6 | switch6 | — | settable |
| Temperature | temperature | °C | read only |
| Humidity | humidity | % | read only |
| Learn ir code | learn_ir_code | — | settable |
| Learned ir code | learned_ir_code | — | read only |
| Learned ir timings | learned_ir_timings | — | read only |
| Ir code to send | ir_code_to_send | — | settable |
| Ir emitter | ir_emitter | — | settable |
| Switch1 on | switch1_on | study, registered, unregistered | settable |
| Switch1 off | switch1_off | study, registered, unregistered | settable |
| Switch2 on | switch2_on | study, registered, unregistered | settable |
| Switch2 off | switch2_off | study, registered, unregistered | settable |
| Switch3 on | switch3_on | study, registered, unregistered | settable |
| Switch3 off | switch3_off | study, registered, unregistered | settable |
| Switch4 on | switch4_on | study, registered, unregistered | settable |
| Switch4 off | switch4_off | study, registered, unregistered | settable |
| Switch5 on | switch5_on | study, registered, unregistered | settable |
| Switch5 off | switch5_off | study, registered, unregistered | settable |
| Switch6 on | switch6_on | study, registered, unregistered | settable |
| Switch6 off | switch6_off | study, registered, unregistered | settable |
| Temperature unit | temperature_unit | celsius, fahrenheit | settable |
| Temperature calibration | temperature_calibration | °C · -2…2 | settable |
| Humidity calibration | humidity_calibration | % · -30…30 | settable |
| Battery | battery | % · 0…100 | 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:
{
"switch1": false,
"switch2": false,
"switch3": false,
"switch4": false,
"switch5": false,
"switch6": false,
"temperature": 21.6,
"humidity": 46.2,
"learn_ir_code": false,
"switch1_on": "study",
"switch1_off": "study",
"switch2_on": "study",
"switch2_off": "study",
"switch3_on": "study",
"linkquality": 120
}
Send commands to zigbee2mqtt/my_device/set:
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"switch1":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"switch2":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"switch3":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"switch4":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"switch5":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.