[New device support]: ZGRC-KEY-047 from Sunricher
Link
https://www.sunricher.com/
Database entry
{"id":29,"type":"Router","ieeeAddr":"0x187a3efffe6a520e","nwkAddr":7795,"manufId":4644,"manufName":"Sunricher","powerSource":"Mains (single phase)","modelId":"HK-ZD-DIM-A","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,65535,2821,4096],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"34819":0,"modelId":"HK-ZD-DIM-A","manufacturerName":"Sunricher","powerSource":1,"zclVersion":3,"appVersion":0,"stackVersion":0,"hwVersion":1,"dateCode":"NULL","swBuildId":"2.9.2_r75"}},"genOnOff":{"attributes":{"onOff":1}},"genLevelCtrl":{"attributes":{"currentLevel":254,"onLevel":255}},"genOta":{"attributes":{"currentFileVersion":75}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":65000,"repChange":1},{"cluster":8,"attrId":0,"minRepIntval":5,"maxRepIntval":65000,"repChange":1}],"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.9.2_r75","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1766569709871} {"id":30,"type":"EndDevice","ieeeAddr":"0x0ceff6fffe6d3342","nwkAddr":37252,"manufId":4644,"manufName":"Sunricher","powerSource":"Battery","modelId":"ZGRC-KEY-047","epList":[1,2,3,4],"endpoints":{"1":{"profId":260,"epId":1,"devId":1,"inClusterList":[0,1,3,2821,4096],"outClusterList":[3,4,5,6,8,25,768,4096],"clusters":{"genBasic":{"attributes":{"modelId":"ZGRC-KEY-047","manufacturerName":"Sunricher","powerSource":3,"zclVersion":3,"appVersion":0,"stackVersion":0,"hwVersion":0,"dateCode":"NULL","swBuildId":"2.7.6_r27"}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200}}},"binds":[{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":768,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":10}],"meta":{}},"2":{"profId":260,"epId":2,"devId":1,"inClusterList":[0,1,3,2821,4096],"outClusterList":[3,4,5,6,8,25,768,4096],"clusters":{"genBasic":{"attributes":{"appVersion":0,"stackVersion":0,"hwVersion":0}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":768,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1}],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":1,"inClusterList":[0,1,3,2821,4096],"outClusterList":[3,4,5,6,8,25,768,4096],"clusters":{"genBasic":{"attributes":{"appVersion":0,"stackVersion":0,"hwVersion":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":768,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1}],"configuredReportings":[],"meta":{}},"4":{"profId":260,"epId":4,"devId":1,"inClusterList":[0,1,3,2821,4096],"outClusterList":[3,4,5,6,8,25,768,4096],"clusters":{"genBasic":{"attributes":{"appVersion":0,"stackVersion":0,"hwVersion":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1},{"cluster":768,"type":"endpoint","deviceIeeeAddress":"0x187a3efffe3947f4","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":0,"hwVersion":0,"dateCode":"NULL","swBuildId":"2.7.6_r27","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1766557492663}
Zigbee2MQTT version
2.7.1 (unknown)
External definition
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';
export default {
zigbeeModel: ['ZGRC-KEY-047'],
model: 'ZGRC-KEY-047',
vendor: 'Sunricher',
description: 'Automatically generated definition',
extend: [m.deviceEndpoints({"endpoints":{"1":1,"2":2,"3":3,"4":4}}), m.battery(), m.commandsOnOff({"endpointNames":["1","2","3","4"]}), m.commandsLevelCtrl({"endpointNames":["1","2","3","4"]}), m.commandsColorCtrl({"endpointNames":["1","2","3","4"]})],
};
What does/doesn't work with the external definition?
all seems to be ok.
Notes
software_build_id: 2.7.6_r27
date_code: NULL
endpoints:
{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"genOnOff","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"genLevelCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"lightingColorCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}}],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","haDiagnostic","touchlink"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","genOta","lightingColorCtrl","touchlink"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":65000,"minimum_report_interval":3600,"reportable_change":10}],"name":"1","scenes":[]},"2":{"bindings":[{"cluster":"genOnOff","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"genLevelCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"lightingColorCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}}],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","haDiagnostic","touchlink"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","genOta","lightingColorCtrl","touchlink"]},"configured_reportings":[],"name":"2","scenes":[]},"3":{"bindings":[{"cluster":"genOnOff","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"genLevelCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"lightingColorCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}}],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","haDiagnostic","touchlink"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","genOta","lightingColorCtrl","touchlink"]},"configured_reportings":[],"name":"3","scenes":[]},"4":{"bindings":[{"cluster":"genOnOff","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"genLevelCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}},{"cluster":"lightingColorCtrl","target":{"endpoint":1,"ieee_address":"0x187a3efffe3947f4","type":"endpoint"}}],"clusters":{"input":["genBasic","genPowerCfg","genIdentify","haDiagnostic","touchlink"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","genOta","lightingColorCtrl","touchlink"]},"configured_reportings":[],"name":"4","scenes":[]}}