prefixkit Ask an engineerAsk Support RU

Zigbee devices Motion and presence sensors

Wenzhi MTD285-ZB

24GHz mmWave human presence sensor. Works with Zigbee2MQTT with no vendor hub or cloud: it pairs with a Zigbee stick and shows up in Home Assistant.

Vendor
Wenzhi
Model
MTD285-ZB
Type
Motion and presence sensors
Power
mains: usually a router that extends the mesh
Firmware updates (OTA)
no

Find it in shops: AliExpress

Links open a search in the shop; some are affiliate links: buying through them costs you nothing extra and supports this site. We do not sell devices or get them from manufacturers.

What it exposes

FeaturePropertyValuesControl
Presencepresence—read only
On / offstatenone, presence, moveread only
Illuminanceilluminancelxread only
Min distancemin_distancem · 0…8.4settable
Max distancemax_distancem · 0…8.4settable
Target distancetarget_distancem · 0…9.9read only
Gate enable 01gate_enable_01disable, enablesettable
Gate enable 02gate_enable_02disable, enablesettable
Gate enable 03gate_enable_03disable, enablesettable
Gate enable 04gate_enable_04disable, enablesettable
Gate enable 05gate_enable_05disable, enablesettable
Gate enable 06gate_enable_06disable, enablesettable
Gate enable 07gate_enable_07disable, enablesettable
Gate enable 08gate_enable_08disable, enablesettable
Gate enable 09gate_enable_09disable, enablesettable
Gate enable 10gate_enable_10disable, enablesettable
Gate enable 11gate_enable_11disable, enablesettable
Configuration gateconfiguration_gate1…11settable
Move thresholdmove_threshold0…99settable
Presence thresholdpresence_threshold0…99settable
Nearest target gatenearest_target_gate0…11read only
Target countdowntarget_countdowns · 0…3600read only
Target velocitytarget_velocitym/s · -9.99…9.99read only
Debug switchdebug_switch—settable
Led modeled_modesilence, statussettable
Delay timedelay_times · 5…3600settable
Block timeblock_times · 0…10settable
Judge logicjudge_logiclarge_move, small_move, custom_movesettable
Start noise collectstart_noise_collectstartsettable
Noise collect statusnoise_collect_statusstart, ongoing, completeread only
Device controldevice_controlno_action, restart, reset_paramsettable
Presence sensitivitypresence_sensitivityhigh, medium, low, customsettable
Move sensitivitymove_sensitivityhigh, medium, low, customsettable
Scene modescene_modecustom, toilet, kitchen, corridor, bedroom, living_room, meeting_roomsettable
Illuminance reportilluminance_report—settable
Move detectmove_detect—settable
Distance reportdistance_report—settable
Speed reportspeed_report—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:

{
  "presence": false,
  "state": "none",
  "illuminance": 120,
  "min_distance": 4,
  "max_distance": 4,
  "target_distance": 5,
  "gate_enable_01": "disable",
  "gate_enable_02": "disable",
  "gate_enable_03": "disable",
  "gate_enable_04": "disable",
  "gate_enable_05": "disable",
  "gate_enable_06": "disable",
  "gate_enable_07": "disable",
  "gate_enable_08": "disable",
  "linkquality": 120
}

Send commands to zigbee2mqtt/my_device/set:

mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"gate_enable_01":"enable"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"gate_enable_02":"enable"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"gate_enable_03":"enable"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"gate_enable_04":"enable"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"gate_enable_05":"enable"}'

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 on motion"
  mode: single
  triggers:
    - trigger: state
      entity_id: binary_sensor.my_device_presence
      to: "on"
  conditions:
    - condition: sun
      after: sunset
  actions:
    - action: light.turn_on
      target:
        entity_id: light.hallway

Check the YAML: YAML checker.

How to pair it

  1. In Zigbee2MQTT click Permit join.
  2. 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.
  3. Keep the device close to the coordinator or a router while pairing.
  4. 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.

Similar devices

Idea?