prefixkit Ask an engineerAsk Support RU

Zigbee devices Switches and relays

Moes ZS-D3

Intelligent dimming switch - 3 gang. Works with Zigbee2MQTT with no vendor hub or cloud: it pairs with a Zigbee stick and shows up in Home Assistant.

Vendor
Moes
Model
ZS-D3
Type
Switches and relays
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
On / off (l1)state_l1—settable
On / off (l2)state_l2—settable
On / off (l3)state_l3—settable
Brightness 1brightness_110…1000settable
Brightness min 1brightness_min_110…1000settable
Brightness max 1brightness_max_110…1000settable
Countdown timercountdown_1s · 0…86400settable
Brightness 2brightness_210…1000settable
Brightness min 2brightness_min_210…1000settable
Brightness max 2brightness_max_210…1000settable
Countdown timercountdown_2s · 0…86400settable
Relay statusrelay_statusoff, on, memorysettable
Brightness 3brightness_310…1000settable
Brightness min 3brightness_min_310…1000settable
Brightness max 3brightness_max_310…1000settable
Countdown timercountdown_3s · 0…86400settable
Light modelight_modenone, relay, possettable
Switch backlightswitch_backlight—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_l1": "ON",
  "state_l2": "ON",
  "state_l3": "ON",
  "brightness_1": 505,
  "brightness_min_1": 505,
  "brightness_max_1": 505,
  "countdown_1": 43200,
  "brightness_2": 505,
  "brightness_min_2": 505,
  "brightness_max_2": 505,
  "countdown_2": 43200,
  "relay_status": "off",
  "brightness_3": 505,
  "brightness_min_3": 505,
  "linkquality": 120
}

Send commands to zigbee2mqtt/my_device/set:

mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_l1":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_l2":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_l3":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"relay_status":"on"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"light_mode":"relay"}'

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_l1

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?