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.92k stars 30.15k forks source link

ZHA Battery Entities unavailable #59021

Closed chrismdann closed 2 years ago

chrismdann commented 2 years ago

The problem

Battery entities went unavailable for 90% of devices in zha. It wasn't consistently one device.

What version of Home Assistant Core has the issue?

Core-2021.11.0

What was the last working version of Home Assistant Core?

Core-2021.10.7

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

ZHA

Link to integration documentation on our website

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

Example YAML snippet

None

Anything in the logs that might be useful for us?

None

Additional information

Screenshot_20211103-173715_Home Assistant

probot-home-assistant[bot] commented 2 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)

iantrich commented 2 years ago

Seeing this as well, but a few have retained their battery. Out of my 19 Centralite 3326-L motion sensors, 3 still are reporting battery.

chrismdann commented 2 years ago

Finally, someone else with this. I have it on centralite and Imagic (Iris) door sensors and Smartthings Motion and Multisensors.

dlindnegm commented 2 years ago

7 of my zigbee sensors are affected by core-2021.11.0. Reverted to core-2021.10.6 and those 7 now show the battery correctly: 2 are motion sensors: motionv4 by SmartThings 2 are motion sensors : 3326-L by CentraLite 3 are door sensors: 3320-L by CentraLite

While on core-2021.11.0 I removed one of the sensors and re-added it, and it only detected 3 of the 4 entities - there was no battery entity detected at all. I have 3 other zigbee door sensors (LUMI) and a Samjin leak detector and those don't have the issue.

Running Home Assistant OS 6.6 on Rpi4 supervisor-2021.10.8 ConBee_II Zigbee USB Stick with ZHA Integration

Adminiuga commented 2 years ago

Can you post zigbee device signature for the affected centralize sensors?

dlindnegm commented 2 years ago

Here's the device signatures for the 3 different models. Let me know if there's anything else I can assist with. Thanks!

CentraLite 3320-L.txt

SmartThings motionv4.txt

CentraLite 3326-L.txt

Swiftnesses commented 2 years ago

I'm also experiencing this with CentraLite motion sensors 'Quirk: zhaquirks.centralite.cl_3305S.CentraLite3305S'.

{ "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=4174, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=0, 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": "0x0402", "in_clusters": [ "0x0000", "0x0001", "0x0003", "0x0020", "0x0402", "0x0500", "0x0b05" ], "out_clusters": [ "0x0019" ] }, "2": { "profile_id": 260, "device_type": "0x0107", "in_clusters": [ "0x0000", "0x0003", "0x0406", "0x0b05" ], "out_clusters": [ "0x0003" ] } }, "manufacturer": "CentraLite", "model": "Motion Sensor-A", "class": "zhaquirks.centralite.cl_3305S.CentraLite3305S" }

glc650 commented 2 years ago

Having similar issue with a couple of battery powered Zigbee devices. Two of my five Sylvania Lightify devices no longer show battery status (and the (broken) battery status shows up under Sensors). My three Lightify devices that do show battery status show it under Diagnostic. I tried removing and repairing one and the battery property wasn't added.

alexruffell commented 2 years ago

Most of my Smartthings Leak sensors lost their battery reporting and when I tried to remove and add back one of them, the entity was no longer being added. I noticed that the newer version of this sensor retained it's battery reporting.

image

{
  "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=4362, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=0, 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": "0x0402",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x000f",
        "0x0020",
        "0x0402",
        "0x0500"
      ],
      "out_clusters": [
        "0x0019"
      ]
    }
  },
  "manufacturer": "SmartThings",
  "model": "moisturev4",
  "class": "zhaquirks.smartthings.moisturev4.SmartThingsMoistureV4"
}
TheJulianJES commented 2 years ago

One of my Konke motion sensors is also affected. Re-pairing didn't seem to help. Another one with exactly the same signature works just fine.

Konke motion sensor signature ``` { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4712, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=, *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": "0x0402", "in_clusters": [ "0x0000", "0x0001", "0x0003", "0x0406", "0x0500", "0xfcc0" ], "out_clusters": [ "0x0003", "0xfcc0" ] } }, "manufacturer": "Konke", "model": "3AFE28010402000D", "class": "zhaquirks.konke.motion.KonkeMotion" } ```
WedHumpDay commented 2 years ago

Awesome. glad to see I'm not alone. Rolled back until resolved! Have 30+ zigbee devices in this state.