Skip to content
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

[Device Support Request] Xiaomi Aqara Opple WXCJKG11LM 2 buttons not working #1001

Closed
kalon33 opened this issue Aug 18, 2021 · 3 comments · Fixed by #1012
Closed

[Device Support Request] Xiaomi Aqara Opple WXCJKG11LM 2 buttons not working #1001

kalon33 opened this issue Aug 18, 2021 · 3 comments · Fixed by #1012

Comments

@kalon33
Copy link

kalon33 commented Aug 18, 2021

Triggering the two buttons, I got errors:

Button 1:
[2021-08-07 18:57:06][DEBUG] : Ignoring message (b'180b0a5500210100') on cluster 18: unknown endpoint or cluster id: 'No cluster ID 0x0012 on (04:cf:8c:df:3c:7c:34:9e, 1)'

Button 2:
[2021-08-07 18:57:03][DEBUG] : Ignoring message (b'180a0a5500210100') on cluster 18: unknown endpoint or cluster id: 'No cluster ID 0x0012 on (04:cf:8c:df:3c:7c:34:9e, 2)'

Here are device raw informations:

{
    "ieee": "04:cf:8c:df:3c:7c:34:9e",
    "nwk": 27063,
    "status": 2,
    "lqi": "255",
    "rssi": "-28",
    "last_seen": "1628499450.0291584",
    "node_descriptor": "02:40:84:5f:11:7f:64:00:00:2c:64:00:00",
    "endpoints": [
        {
            "id": 1,
            "status": 1,
            "device_type": 261,
            "profile_id": 260,
            "manufacturer": "LUMI",
            "model": "lumi.remote.b286opcn01",
            "output_clusters": [
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                },
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": []
                },
                {
                    "id": 8,
                    "name": "Level control",
                    "attributes": []
                },
                {
                    "id": 768,
                    "name": "Color Control",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 0,
                    "name": "Basic",
                    "attributes": [
                        {
                            "id": 0,
                            "name": "zcl_version",
                            "value": 3
                        },
                        {
                            "id": 1,
                            "name": "app_version",
                            "value": 17
                        },
                        {
                            "id": 2,
                            "name": "stack_version",
                            "value": 2
                        },
                        {
                            "id": 3,
                            "name": "hw_version",
                            "value": 1
                        },
                        {
                            "id": 4,
                            "name": "manufacturer",
                            "value": "LUMI"
                        },
                        {
                            "id": 5,
                            "name": "model",
                            "value": "lumi.remote.b286opcn01"
                        },
                        {
                            "id": 6,
                            "name": "date_code",
                            "value": "20190730"
                        },
                        {
                            "id": 7,
                            "name": "power_source",
                            "value": 3
                        },
                        {
                            "id": 16384,
                            "name": "sw_build_id",
                            "value": "2019"
                        }
                    ]
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                },
                {
                    "id": 1,
                    "name": "Power Configuration",
                    "attributes": [
                        {
                            "id": 32,
                            "name": "battery_voltage",
                            "value": 31
                        }
                    ]
                }
            ]
        },
        {
            "id": 2,
            "status": 1,
            "device_type": 259,
            "profile_id": 260,
            "manufacturer": null,
            "model": null,
            "output_clusters": [
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": []
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                }
            ]
        },
        {
            "id": 3,
            "status": 1,
            "device_type": 259,
            "profile_id": 260,
            "manufacturer": null,
            "model": null,
            "output_clusters": [
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 18,
                    "name": "MultistateInput",
                    "attributes": []
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                }
            ]
        },
        {
            "id": 4,
            "status": 1,
            "device_type": 259,
            "profile_id": 260,
            "manufacturer": null,
            "model": null,
            "output_clusters": [
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 18,
                    "name": "MultistateInput",
                    "attributes": []
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                }
            ]
        },
        {
            "id": 5,
            "status": 1,
            "device_type": 259,
            "profile_id": 260,
            "manufacturer": null,
            "model": null,
            "output_clusters": [
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 18,
                    "name": "MultistateInput",
                    "attributes": []
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                }
            ]
        },
        {
            "id": 6,
            "status": 1,
            "device_type": 259,
            "profile_id": 260,
            "manufacturer": null,
            "model": null,
            "output_clusters": [
                {
                    "id": 6,
                    "name": "On\/Off",
                    "attributes": []
                }
            ],
            "input_clusters": [
                {
                    "id": 18,
                    "name": "MultistateInput",
                    "attributes": []
                },
                {
                    "id": 3,
                    "name": "Identify",
                    "attributes": []
                }
            ]
        }
    ],
    "signature": {
        "manufacturer": "LUMI",
        "model": "lumi.remote.b286opcn01",
        "node_desc": {
            "logical_type": 2,
            "complex_descriptor_available": 0,
            "user_descriptor_available": 0,
            "reserved": 0,
            "aps_flags": 0,
            "frequency_band": 8,
            "mac_capability_flags": 132,
            "manufacturer_code": 4447,
            "maximum_buffer_size": 127,
            "maximum_incoming_transfer_size": 100,
            "server_mask": 11264,
            "maximum_outgoing_transfer_size": 100,
            "descriptor_capability_field": 0
        },
        "endpoints": {
            "1": {
                "profile_id": 260,
                "device_type": 261,
                "input_clusters": [
                    0,
                    3,
                    1
                ],
                "output_clusters": [
                    3,
                    6,
                    8,
                    768
                ]
            },
            "2": {
                "profile_id": 260,
                "device_type": 259,
                "input_clusters": [
                    3
                ],
                "output_clusters": [
                    6,
                    3
                ]
            },
            "3": {
                "profile_id": 260,
                "device_type": 259,
                "input_clusters": [
                    18,
                    3
                ],
                "output_clusters": [
                    6
                ]
            },
            "4": {
                "profile_id": 260,
                "device_type": 259,
                "input_clusters": [
                    18,
                    3
                ],
                "output_clusters": [
                    6
                ]
            },
            "5": {
                "profile_id": 260,
                "device_type": 259,
                "input_clusters": [
                    18,
                    3
                ],
                "output_clusters": [
                    6
                ]
            },
            "6": {
                "profile_id": 260,
                "device_type": 259,
                "input_clusters": [
                    18,
                    3
                ],
                "output_clusters": [
                    6
                ]
            }
        }
    },
    "class": "zigpy.device"
}

Could you please help me to get this working? I have 4 switches, all trigger the same kind of problem.

@TheJulianJES
Copy link
Collaborator

It's likely that creating a new quirk in https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/xiaomi/aqara/opple_remote.py with the signature of your remotes would fix this.
I'll see if I get around to this.

@TheJulianJES
Copy link
Collaborator

@kalon33 Can you download https://raw.githubusercontent.com/TheJulianJES/zha-device-handlers/aqara_opple_two_button/zhaquirks/xiaomi/aqara/opple_remote.py.
Create a folder in your /config directory called custom_quirks and drop the opple_remote.py file in there.

In your Home Assistant configuration.yaml, add the following section:

zha:
  custom_quirks_path: /config/custom_quirks

(https://www.home-assistant.io/integrations/zha/#custom_quirks_path)

Then restart Home Assistant. Your Aqara Opple 2 button remote should get a quirk applied and send zha_events.
Device automation triggers should also be created.
If it doesn't work, try re-pairing the device.

If it works, I'll create a PR so the custom quirk is implemented by default.

@kalon33
Copy link
Author

kalon33 commented Aug 26, 2021

@TheJulianJES Awesome! That works properly :) Thanks a lot for your help!

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 a pull request may close this issue.

2 participants