[New device support] ZGRC-KEY-044 from Sunricher
Link
What does/doesn't work with the external definition?
Details
zigbee-herdsman-converters: 25.35.1
software_build_id: undefined
date_code: undefined
endpoints:
{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x44e2f8fffe8c6588","type":"endpoint"}},{"cluster":"genOnOff","target":{"endpoint":1,"ieee_address":"0x44e2f8fffe8c6588","type":"endpoint"}},{"cluster":"genLevelCtrl","target":{"endpoint":1,"ieee_address":"0x44e2f8fffe8c6588","type":"endpoint"}},{"cluster":"lightingColorCtrl","target":{"endpoint":1,"ieee_address":"0x44e2f8fffe8c6588","type":"endpoint"}}],"clusters":{"input":["genBasic","genPowerCfg","genIdentify"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","lightingColorCtrl","genOta","touchlink"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":65000,"minimum_report_interval":3600,"reportable_change":10}],"scenes":[]}}
External definition:
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';
export default {
zigbeeModel: ['ZGRC-KEY-044'],
model: 'ZGRC-KEY-044',
vendor: 'Sunricher',
description: 'Automatically generated definition',
extend: [m.battery(), m.commandsOnOff(), m.commandsLevelCtrl(), m.commandsColorCtrl()],
meta: {},
};
🙏 Thank you for creating this issue and sharing your external converter!
In case all features work, please submit a pull request on this repository so the device can be supported out-of-the-box with the next release. For instructions on how to create a pull request see the docs.
If NOT all features work, please follow the How To Support new devices
If you need help with the process, feel free to ask here and we'll be happy to assist.
Could you precise which Sunricher model it is ? ZGRC-KEY-044 is the modelID. We need to know which product your are trying to add. It should be something like SR-ZG9001K12-DIM-Z5.
Ref : SR-ZG2868EK7-DIM
Is it this model ?
https://www.sunricher.com/dim-cct-rgb-3-in-1-zigbee-remote-sr-zg2868.html
Or if you have a link where you bought your device. That would be helpful.
No, it :
https://www.domadoo.fr/fr/produits-de-domotique/8340-sunricher-telecommande-d-eclairage-zigbee-onoff-et-variation.html?srsltid=AfmBOoo72_u_MdwOMBNpBtlzTE1MkKs-fpRdZ0S8ByIvzaTp0arAZnVQ
Merci.
Could you add this external converter as a *.mjs file and test if everything works ? According to the link provided and the manual, this remote is not able to change the color of a light (so I removed this from the converter you submited) and add the scene management as it was missing.
import * as m from "zigbee-herdsman-converters/lib/modernExtend";
export default {
zigbeeModel: ["ZGRC-KEY-044"],
model: "SR-ZG2868EK7-DIM",
vendor: "Sunricher",
description: " ZigBee handheld diming remote, 4 scenes",
extend: [
m.battery(),
m.commandsOnOff({commands: ["on", "off"]}),
m.commandsLevelCtrl({
commands: [
"brightness_step_up",
"brightness_step_down",
"brightness_move_up",
"brightness_move_down",
"brightness_stop",
"brightness_move_to_level",
],
}),
m.commandsScenes({commands: ["recall", "store"]}),
],
};
Check this link for any explanation on how to add an external converter
https://www.zigbee2mqtt.io/advanced/more/external_converters.html
Take your time to test any functions according to the manual and keep us informed if anything is missing or not functioning as expected.
i think its normal since its only a dimmer, you would need the 3 in 1 remote to change the light color and cct
Yep. The only thing which bothers me, the color cluster is present in the firmware according to the info provided in the first post.
might as well be residual code from another remote,sunricher themselves say it's only a dimmer,u can see the commands and colors aint there
Hello.
So I tested it this weekend.
After adding the external converter, a message appeared in Z2M (supported by an external converter). All commands were recognized (short and long presses), and I was able to create a nice automation using all the commands with excellent functionality.
Unfortunately, last night, after losing and restoring Home Assistant, I no longer get the "supported by external converter" message (even though the file is still in the same location: /homeassistant/zigbee2mqtt/data/external_converters).
And the S1 to S4 buttons aren't sending any information.
So the file is working fine, but I don't know why I can no longer link it to the remote control.
Your device should be supported in the next official release or in the latest-dev when the PR will be accepted and merged by the dev team.
https://github.com/Koenkk/zigbee-herdsman-converters/pull/10640
If your external converter is not working anymore, check your log (startup) to see if the code is added to your setup.
And the S1 to S4 buttons aren't sending any information.
According to your screenshot, they are working as expected. Short press recall_x, long press store_x.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days