Senic / FoH: Events fired twice (direct and proxied)

Hi!

Since a few months, events from one of my Senic/Friends of Hue switches are fired twice: Directly from switch to coordinator and immediately again through a Hue bulb.
Maybe it’s possible to disable the GPP proxy or have deConz ignore repeated frames (please notice that the frameCounter is identical)?

09:23:54:896 ZGP srcId: 0x01732B98 cmd: 0x12 frameCounter: 4962
09:23:54:896 ZGP button 4000 (null)
09:23:55:130 ZGP srcId: 0x01732B98 cmd: 0x16 frameCounter: 4963
09:23:55:130 ZGP button 4002 (null)
09:23:56:040 ZGP via GPP proxy 0x65EE for GPD srcId: 0x01732B98 cmd: 0x12 frameCounter: 4962, GPD lqi: moderate, rssi: -88
09:23:56:041 ZGP button 4000 (null)
09:23:56:150 ZGP via GPP proxy 0xFB09 for GPD srcId: 0x01732B98 cmd: 0x16 frameCounter: 4963, GPD lqi: excellent, rssi: -60
09:23:56:151 ZGP button 4002 (null)

Expected behaviour would be:

09:27:54:393 ZGP srcId: 0x01732B98 cmd: 0x13 frameCounter: 4964
09:27:54:394 ZGP button 3000 (null)
09:27:54:581 ZGP srcId: 0x01732B98 cmd: 0x17 frameCounter: 4965
09:27:54:582 ZGP button 3002 (null)

deConz: 2.24.2
Raspbee-II Firmware: 26780700

Hello,

i dont know exactly if my issues are the same but they are pretty similar.
From the moment i upgrade my Phoscon beyond version 2.23.02 i’m getting some kind of weird ghost taps on my FOH Senic Switches - even with the newest beta 2.25.0. if i tap one time it recognizes 4- 5 inputs. If i push the the top button it also show a bottom input in the Phoscon GUI so my lights are turning on and off randomly. i never had this before with other versions.
Using a Conbee II Stick with FW:26780700

@de_employees Can you check in?

Maybe it’s possible to disable the GPP proxy or have deConz ignore repeated frames (please notice that the frameCounter is identical)?

That’s what the code does to since usually all ZGP commands are received three times the code checks for the last frame counter which used to work in the past while testing.

However looking at the code only one “past” frame counter is recorded this may not be enough and perhaps it’s better record a small array of the last X messages to be more strict :thinking:

For upcoming v2.25.1 I’ve added tracking up to 8 unique frames, fingers crossed that does the trick.

1 Like

Thanks for taking a closer look. Looking forward to test it :wink:

Just tried v2.24.3 and it looks very promising so far!