Open chris-1243 opened 2 weeks ago
https://www.sunricher.com/4-groups-rgb-zigbee-remote-sr-zg2819s-rgb.html
{"id":19,"type":"EndDevice","ieeeAddr":"0x000d6f001668b62f","nwkAddr":34591,"manufId":4644,"manufName":"Sunricher","powerSource":"Battery","modelId":"ZG2819S-RGBW","epList":[1,2,3,4],"endpoints":{"1":{"profId":260,"epId":1,"devId":261,"inClusterList":[0,1,3,2821,4096],"outClusterList":[3,4,5,6,8,25,768,4096],"clusters":{"genPowerCfg":{"attributes":{"batteryPercentageRemaining":100}},"genBasic":{"attributes":{"appVersion":0,"stackVersion":0,"hwVersion":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x0017880109aeb2b3","endpointID":11},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x0017880109aeb2b3","endpointID":11},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0026d15e0e","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":261,"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":100}}},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":261,"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":100}}},"binds":[],"configuredReportings":[],"meta":{}},"4":{"profId":260,"epId":4,"devId":261,"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":100}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":0,"hwVersion":0,"dateCode":"NULL","swBuildId":"2.2.3_r12","zclVersion":2,"interviewCompleted":true,"meta":{"configured":1709916092},"lastSeen":1715615954838}
I have made an external converter and I have a picture as well. I am just stuck how to make the pull request. Any help would be really appreciated.
const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const tz = require('zigbee-herdsman-converters/converters/toZigbee'); const exposes = require('zigbee-herdsman-converters/lib/exposes'); const reporting = require('zigbee-herdsman-converters/lib/reporting'); //const extend = require('zigbee-herdsman-converters/lib/extend'); const e = exposes.presets; const ea = exposes.access; const definition = { fingerprint: [{softwareBuildID: '2.2.3_r12'}], zigbeeModel: ['ZG2819S-RGBW'], model: 'ZB-5028', vendor: 'Sunricher', description: 'Zigbee handheld remote RGBW 4 channels', fromZigbee: [fz.battery, fz.command_on, fz.command_off, fz.command_step, fz.command_move, fz.command_stop, fz.command_recall, fz.command_move_hue, fz.command_move_to_color, fz.command_move_to_color_temp], exposes: [e.battery(), e.action(['on', 'off', 'brightness_step_up', 'brightness_step_down', 'brightness_move_up', 'brightness_move_down', 'brightness_stop', 'recall_*', 'hue_move', 'color_temperature_move', 'color_move', 'hue_stop'])], toZigbee: [], meta: {multiEndpoint: true}, endpoint: (device) => { return {ep1: 1, ep2: 2, ep3: 3, ep4: 4}; }, }; module.exports = definition;
Link
https://www.sunricher.com/4-groups-rgb-zigbee-remote-sr-zg2819s-rgb.html
Database entry
{"id":19,"type":"EndDevice","ieeeAddr":"0x000d6f001668b62f","nwkAddr":34591,"manufId":4644,"manufName":"Sunricher","powerSource":"Battery","modelId":"ZG2819S-RGBW","epList":[1,2,3,4],"endpoints":{"1":{"profId":260,"epId":1,"devId":261,"inClusterList":[0,1,3,2821,4096],"outClusterList":[3,4,5,6,8,25,768,4096],"clusters":{"genPowerCfg":{"attributes":{"batteryPercentageRemaining":100}},"genBasic":{"attributes":{"appVersion":0,"stackVersion":0,"hwVersion":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x0017880109aeb2b3","endpointID":11},{"cluster":8,"type":"endpoint","deviceIeeeAddress":"0x0017880109aeb2b3","endpointID":11},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0026d15e0e","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":261,"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":100}}},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":261,"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":100}}},"binds":[],"configuredReportings":[],"meta":{}},"4":{"profId":260,"epId":4,"devId":261,"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":100}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":0,"hwVersion":0,"dateCode":"NULL","swBuildId":"2.2.3_r12","zclVersion":2,"interviewCompleted":true,"meta":{"configured":1709916092},"lastSeen":1715615954838}
Comments
I have made an external converter and I have a picture as well. I am just stuck how to make the pull request. Any help would be really appreciated.
External definition