Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.14k stars 1.68k forks source link

[New device support]: Add Sunricher SR-ZG9030A-MW #23003

Open 87insane opened 5 months ago

87insane commented 5 months ago

Link

https://www.sunricher.com/zigbee-microwave-sensor-sr-zg9030a-mw.html

Database entry

{"id":20,"type":"Router","ieeeAddr":"0x60a423fffef174f3","nwkAddr":51209,"manufId":4644,"manufName":"Sunricher","powerSource":"Mains (single phase)","modelId":"HK-DIM","epList":[1,2,3,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,2821,4096],"outClusterList":[3,4,5,6,8,25,4096],"clusters":{"genBasic":{"attributes":{"appVersion":0,"stackVersion":0}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":263,"inClusterList":[0,3,1030],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"appVersion":0,"stackVersion":0}}},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":262,"inClusterList":[0,3,1024],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"appVersion":0,"stackVersion":0}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":102,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":0,"hwVersion":1,"dateCode":"NULL","swBuildId":"2.5.3_r54","zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1718025108990}

Comments

I have tried to pair the device but it is always recognised as the following: Zigbee model: HK-DIM Zigbee manufacturer: Sunricher Description: LED dimmable driver

BUT it is a: Sunricher SR-ZG9030A-MW I have currently completely deleted sunricher from z2m from the converters and am only working with the converter specified here. However, I think you can set up a lot more via Zigbee. But I need help here. This device is too complex to create yourself.

The following endpoints are displayed in the instructions: Endpoint 1: Input clusters: 0x0000: Basic 0x0003: Identify 0x0004: Groups 0x0005: Scenes 0x0006: On/off 0x0008: Level Control 0x0b05: Diagnostics 0x0100: zll commissioning Output clusters: 0x0019: OTA 0x0100: zll commissioning Endpoint 2: Input Clusters: 0x0000: Basic 0x0003: Identify 0x0400: illuminance measurement 0x0406: occupancy sensing

https://www.sunricher.com/media/resources/manual/SR-ZG9030A-MW%20instruction.pdf

External definition

const {deviceEndpoints, identify, onOff, occupancy, illuminance, commandsOnOff, commandsLevelCtrl} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['HK-DIM'],
    model: 'HK-DIM',
    vendor: 'Sunricher',
    description: 'Automatically generated definition',
    extend: [deviceEndpoints({"endpoints":{"1":1,"2":2,"3":3}}), identify(), onOff({"powerOnBehavior":false}), occupancy(), illuminance({"endpointNames":["3"]}), commandsOnOff(), commandsLevelCtrl()],
    meta: {"multiEndpoint":true},
};

module.exports = definition;
87insane commented 4 months ago

Is somebody here, he can help?