prefixkit Ask an engineerAsk Support RU

Zigbee devices Lights and bulbs

Sunricher SR-ZG9032A-MW

Zigbee compatible fixture with integrated occupancy sensor. Works with Zigbee2MQTT with no vendor hub or cloud: it pairs with a Zigbee stick and shows up in Home Assistant.

Vendor
Sunricher
Model
SR-ZG9032A-MW
Type
Lights and bulbs
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
Identifyidentifyidentifysettable
Light (1)state, brightnesson / off, brightnesssettable
Light effect (1)effect_1blink, breathe, okay, channel_change, finish_effect, stop_effectsettable
After power loss (1)power_on_behavior_1off, on, toggle, previoussettable
Motion (2)occupancy_2—read only
Illuminance (3)illuminance_3lxread only
Network join search countnetwork_join_search_count1…255settable
Light pwm frequencylight_pwm_frequency0…65535settable
Dimming brightness curvedimming_brightness_curvelinear, gamma_1_5, gamma_1_8settable
Start up on offstart_up_on_offoff, on, last_statesettable
Motion sensor lux thresholdmotion_sensor_lux_threshold0…65535settable
Motion sensor operation modemotion_sensor_operation_modeauto, manualsettable
Motion sensor sensitivitymotion_sensor_sensitivity0…15settable
Motion sensor microwave detectionmotion_sensor_microwave_detectiondisabled, enabledsettable
Touchlink onoff broadcasttouchlink_onoff_broadcastdo_not_send, sendsettable
Brightness module enablebrightness_module_enabledisabled, enabledsettable
Light on timelight_on_times · 0…65535settable
Pwm brightness valuepwm_brightness_valuelux · 0…1000settable
Pwm output percentagepwm_output_percentage% · 0…254settable
Light status after first delaylight_status_after_first_delay% · 0…254settable
Second delay timesecond_delay_times · 0…65535settable
Light status after second delaylight_status_after_second_delay% · 0…254settable
Linearity error ratio luxlinearity_error_ratio_lux100…10000settable
Fixed deviation luxfixed_deviation_lux-100…100settable
Action (button press)actionrecall_1, store_1, add_1, remove_1, remove_all_1, on, off, toggle …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:

{
  "state_1": "ON",
  "brightness_1": 180,
  "power_on_behavior_1": "off",
  "occupancy_2": false,
  "illuminance_3": 120,
  "network_join_search_count": 128,
  "light_pwm_frequency": 32768,
  "dimming_brightness_curve": "linear",
  "start_up_on_off": "off",
  "motion_sensor_lux_threshold": 32768,
  "motion_sensor_operation_mode": "auto",
  "motion_sensor_sensitivity": 8,
  "motion_sensor_microwave_detection": "disabled",
  "touchlink_onoff_broadcast": "do_not_send",
  "linkquality": 120
}

Send commands to zigbee2mqtt/my_device/set:

mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_1":"ON","brightness_1":180}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_1":"OFF","transition":2}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"power_on_behavior_1":"on"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"dimming_brightness_curve":"gamma_1_5"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"start_up_on_off":"on"}'

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 at sunset"
  mode: single
  triggers:
    - trigger: sun
      event: sunset
      offset: "-00:15:00"
  actions:
    - action: light.turn_on
      target:
        entity_id: light.my_device
      data:
        brightness_pct: 70

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?