zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Sunricher SR-ZGP2801K4-DIM does not match fingerprint in sunricher.js

Open Andreas-Hellberg opened this issue 4 years ago • 10 comments

What happened?

Tried to pair a new Sunricher SR-ZGP2801K4-DIM, and it shows up as unsupported. Found that it's because the IEEE address did not match the fingerprint in sunricher.js. My device shipped with the following IEEE 0x0000000057e24e5d (0x4E5D)

https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/devices/sunricher.js { fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x000000005d5.....$/}], model: 'SR-ZGP2801K4-DIM', vendor: 'Sunricher', description: 'Pushbutton transmitter module', fromZigbee: [fz.sunricher_switch2801K4], toZigbee: [], exposes: [e.action(['press_on', 'press_off', 'press_high', 'press_low', 'hold_high', 'hold_low', 'release'])], }

What did you expect to happen?

Expected it to pair and get identified.

How to reproduce it (minimal and precise)

Buy a Sunricher SR-ZGP2801K4-DIM that does not have a IEEE address that starts with 5d5.

Zigbee2MQTT version

1.22.2

Adapter firmware version

0x26700700

Adapter

Conbee II

Debug log

No response

Andreas-Hellberg avatar Jan 24 '22 15:01 Andreas-Hellberg

Does changing the fingerprint to fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x0000000057e.....$/}], fix it?

Koenkk avatar Jan 24 '22 15:01 Koenkk

Yes, I ended up adding a external converter and my switch works just fine. Copied the settings from the sunricher.js and just modified the fingerprint. To the following, but yes /^0x0000000057e.....$/}] should work fine also:

const exposes = require('zigbee-herdsman-converters/lib/exposes'); const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const tz = require('zigbee-herdsman-converters/converters/toZigbee'); const reporting = require('zigbee-herdsman-converters/lib/reporting'); const extend = require('zigbee-herdsman-converters/lib/extend'); const e = exposes.presets;

const definition = { fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x000000005.......$/}], model: 'SR-ZGP2801K4-DIM', vendor: 'Sunricher', description: 'Pushbutton transmitter module', fromZigbee: [fz.sunricher_switch2801K4], toZigbee: [], exposes: [e.action(['press_on', 'press_off', 'press_high', 'press_low', 'hold_high', 'hold_low', 'release'])], };

module.exports = definition;

Andreas-Hellberg avatar Jan 24 '22 17:01 Andreas-Hellberg

image

Andreas-Hellberg avatar Jan 24 '22 17:01 Andreas-Hellberg

thanks, added.

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Jan 25 '22 15:01 Koenkk

Throwing a note here that a SR-ZGP2801K4-DIM switch I just received also did not match the included fingerprints, mine shipped with the address 0x00000000f126c331

Adding an external converter like this has worked fine though;

const exposes = require('zigbee-herdsman-converters/lib/exposes');
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;

const definition = {
  fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x00000000f.......$/}],
  model: 'SR-ZGP2801K4-DIM',
  vendor: 'Sunricher',
  description: 'Pushbutton transmitter module',
  fromZigbee: [fz.sunricher_switch2801K4],
  toZigbee: [],
  exposes: [e.action(['press_on', 'press_off', 'press_high', 'press_low', 'hold_high', 'hold_low', 'release'])],
};

module.exports = definition;

Screenshot_20220715_181521

ananace avatar Jul 15 '22 16:07 ananace

@ananace added!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar Jul 17 '22 19:07 Koenkk

Please, where did you buy your SR-ZGP2801K4-DIM ? Looking to buy them but can't find. Just really loved the batteryless switches.

charlesrg avatar May 12 '23 14:05 charlesrg

@charlesrg I bought them at the store below. But try Google for sunricher kinetic switch.

https://www.kjell.com/se/varumarken/sunricher/smarta-hem/philips-hue/philips-hue-tillbehor/sunricher-kinetisk-fjarrstrombrytare-for-vaggmontering-p51601

Andreas-Hellberg avatar May 12 '23 19:05 Andreas-Hellberg

@charlesrg I bought them at the store below. But try Google for sunricher kinetic switch.

https://www.kjell.com/se/varumarken/sunricher/smarta-hem/philips-hue/philips-hue-tillbehor/sunricher-kinetisk-fjarrstrombrytare-for-vaggmontering-p51601

Thank you . I definitely tried googling before asking. It looks like it's available only Swedish stores are selling it. Can't find it in USA.

charlesrg avatar May 13 '23 01:05 charlesrg

I got the Sunricher SR-ZGP2801K4-DIM paired correctly, but I can't get the second rocker to work. When pairing both rockers separately, those will appear as separate devices with unique IEEE addresses. Problem is that even though I press either of the rockers, it will affect only to the rocker/device that was paired first. The second rocker doesn't update the LQI at all and with that device you can't do anything. Any idea how to get the second rocker to work?

Testo17 avatar Jul 19 '23 00:07 Testo17