-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Aqara WXKG11LM controller under ZHA #141
Conversation
Hi @ilarrain, Thanks for your contribution. What is each of the actions you integrated? Single, double, triple, and quadruple? If so, I would map it to be "single", "double", "triple", "quadruple". I can change it in your branch if you let me know about the actions. Cheers, |
Hi @XaviMi,
Indeed, the "value" argument corresponds to the number of clicks: 1: single, 2: double, 3: triple, and 4: quadruple.
Please do. My Python skills are pretty limited. Regards, |
Hi @ilarrain, Thanks for your response. I will go ahead and change it from your branch, no worries. However, I have a question for you about this. I just realised that the z2m and deconz integration for this controller does not support triple and quadruple events, but rather "single", "double", "hold" and "release". Could you please confirm that these actions are coming from Cheers, |
@xaviml The event implementation: Events:
triple click:
double click:
single click:
Regards, |
I've updated the HA caption, as previous one was of another device (same button, but other ID). |
Hi @ilarrain, I added support for this controller for ZHA. Does ZHA fire any event in case of holding an releasing the button? If so, could you send the ZHA events? I would like to add that if possible. Cheers, |
It doesn't.
|
Mapping works great, but it's missing the mapping for "0" value:
I don't know what the "0" value should be mapped to. "release", "single_release", "ignore", "off", "". |
Hi @ilarrain, Thanks for pointing that out. I added a default action of empty string, so any unexpected action will be ignored. For the moment is not worth adding the hold-release functionality since it is not working as expected. So this can be now merged. I will wait until you try it out again, and I will merge the PR. Gracias! :) |
No description provided.