Skip to content

Add suport for hold event in Opple WXCJKG13LM#7

Open
nununo wants to merge 2 commits into
remb0:mainfrom
nununo:main
Open

Add suport for hold event in Opple WXCJKG13LM#7
nununo wants to merge 2 commits into
remb0:mainfrom
nununo:main

Conversation

@nununo
Copy link
Copy Markdown

@nununo nununo commented Apr 12, 2025

For some reason, the hold event is commont to all buttons. This is reported here:
Koenkk/zigbee2mqtt#25057

Fortunately, the hold event still provides property button: button_X which can be used to distinguish which button actually triggered it. This commit implements it.

Fixes #6.

I update the header comments and bumped the version. I'm not sure I did it right. Of course, please feel free to revise it or suggest how to.

For some reason, the `hold` event is commont to all buttons. This is
reported here:
Koenkk/zigbee2mqtt#25057

Fortunately, the `hold` event still provides property `button:
button_X` which can be used to distinguish which button actually
triggered it. This commit implements it.
@nununo
Copy link
Copy Markdown
Author

nununo commented Apr 15, 2025

I am not 100% that this doesn't break the generic hold state since I added an extra condition so that it would only be triggered if button_attribute is not present. But it doesn't seem to be working properly. I'll investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve hold event for Aqara Opple WXCJKG13LM to distinguish which button was held

2 participants