-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Xiaomi Mijia Wirelss Switch (Round) #94
Comments
Hi @Kanishkaz, First of all, thank you for your request. As I understand the "command" is always I will integrate this controller and solve #97 for the next release. Thank you, |
Thanks. I just tested a single click and captured the events. It triggered the following 3 events. Hope that helps too. Please reach out if you need more log output.
|
Out of curiosity, what Zigbee integration are you using with HA? |
I am currently using zigbee2mqtt and deconz at the same time. I have it like so I can test easily with both integrations. I have now pushed the code to support ZHA for this device. Now ZHA integrations will be easier since a specific parse can be done for each device since ZHA devices are all different when it comes to firing the events. I will let you know once this is released. Thank you :) |
The integration for this device has been added in ControllerX v3.2.0. Thanks :) |
New Device Support
Device Information
Integrations
ZHA sends a click type for each event:
payload.event.args.click_type
Sample ZHA event:
{ "event_type": "zha_event", "data": { "device_ieee": "00:15:8d:00:01:9c:a4:2c", "unique_id": "00:15:8d:00:01:9c:a4:2c:1:0x0006", "endpoint_id": 1, "cluster_id": 6, "command": "click", "args": { "click_type": "single" } }, "origin": "LOCAL", "time_fired": "2020-07-07T09:18:52.457737+00:00", "context": { "id": "86e379662f6f4019a19512f08353f0d7", "parent_id": null, "user_id": null } }
Valid values for click_type:
Integration: zha
Actions
Uses click_type attribute as mentioned above
single
: Sent when button pressed oncedouble
: Sent when button pressed twicetriple
: Sent when button pressed 3 timesquadruple
: Sent when button pressed 4 timesfurious
: Sent when button pressed multiple times in quick successionNotes
ZHA currently does not implement a press and hold event for this button.
ZHA Quirk implementation: https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/xiaomi/mija/sensor_switch.py
The text was updated successfully, but these errors were encountered: