home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.93k stars 30.15k forks source link

ZHA wont set up Konke Zigbee button zhough cluster 0x0006 is present in device firmware #54534

Closed gribouk closed 3 years ago

gribouk commented 3 years ago

The problem

Dear all, I often meet 'Zigbee3.0' devices which does not follow zigbee standards and do not function in ZHA properly for that reason (i.e. all 'zigbee' circuit breakers with power management designed for Tuya). Therefore when I meet such device which does not contain proper clusters in it's firmware I do not bother you with questions how to make it work and send it directly into a trash been. But this instance is not the same. Today I've recieved Konke Zigbee3.0 button, paired it to my coordinator and discovered, the it gives me battery level sensor only and no switch - the button supposed to be a switch, or a sensor with button state, right? So, I assumed that as many other 'zigbee3.0' devices it does not have proper zigbee clusters and was about to throw it into a trash been, but decided to have a look inside, and discovered, that there are cluster 0x0006 - on_off. So I am wondering if it is possible to use this button and why I am not seeing the state sensor (I assume it should be a sensor with buttons state) in the buttons configuration.

button

What is version of Home Assistant Core has the issue?

2021.8.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Example YAML snippet

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4712, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0006",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0006",
        "0xfcc0"
      ],
      "out_clusters": [
        "0x0003",
        "0xfcc0"
      ]
    }
  },
  "manufacturer": "Konke",
  "model": "3AFE280100510001",
  "class": "zhaquirks.konke.button.KonkeButtonRemote1"
}

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 3 years ago

Hey there @dmulcahey, @adminiuga, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

Adminiuga commented 3 years ago

Button is a remote and does not have entities. Go to dev panel, listen to zha_event and then press the button. Do you get events?

gribouk commented 3 years ago

Ohh, I see now. Thanks for the tip! Yes, I do get events. Now, I belive, I will use it no problem.

{'id': '0', 'idx': '0', 'platform': 'event', 'event': <Event zha_event[L]: device_ieee=14:b4:57:ff:fe:07:68:67, unique_id=14:b4:57:ff:fe:07:68:67:1:0x0006, device_id=2e052bc1e433b1d150d467aa994d11ea, endpoint_id=1, cluster_id=6, command=single, args=press_type=single, command_id=Bool.undefined_0x80>, 'description': "event 'zha_event'"}