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.78k stars 30.04k forks source link

ZHA not updating state for door sensor #126960

Open ehendrix23 opened 5 hours ago

ehendrix23 commented 5 hours ago

The problem

Just updated to 2024.9.3 from 2024.9.1 and now my door sensors aren't working anymore. They are showing available and from what I can tell updates are happening except for the binary sensor identifying if the window is open or not.

It is always showing as closed even when it is open. I've added debug log and at 13:30 I opened the window and then about 10 seconds later or so closed it again. You can see the incoming command at 13:30:05 which would be when I opened the window. And at 13:30:26 would have been when I closed the window again.

Before I had disabled and enabled the sensor to see if that made a difference but it did not.

I also tried restarting HA and even rebooting my Yellow with same results.

What version of Home Assistant Core has the issue?

core-2024.9.3

What was the last working version of Home Assistant Core?

core-2024.9.1

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/

Diagnostics information

home-assistant_2024-09-27T19-31-39.131Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 hours ago

Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, 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!

Code owner commands Code owners of `zha` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zha` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

puddly commented 5 hours ago

Could you also upload diagnostics JSON for both the sensor and the ZHA integration?

What happens if you downgrade back to 2024.9.1?

ehendrix23 commented 5 hours ago

Here is diagnostics JSON for ZHA integration: config_entry-zha-b741efc7aea458660e717ed8c3c6cf69.json Here is diagnostics JSON for sensor: zha-b741efc7aea458660e717ed8c3c6cf69-lk ZB-DoorSensor-D0003-75bf5fc8c6ecfc996ec64db8bd08ba03.json

Downgrading now :-)

puddly commented 5 hours ago

Thanks. Have you recently migrated your Zigbee network between coordinators?

ehendrix23 commented 5 hours ago

No I have not. If I recall correctly I did do so quite a while ago (over a year ago) when I moved my installation from a Mac to Home Assistant Yellow. But things have been working this whole time

After downgrade still not working. So update was not it just a coincidence then. :-)

I just checked and out of the 8 sensors only 1 is reacting. All others do not update.

Interesting enough, yesterday when I first noticed it (as I did the update yesterday and hence restart) I saw that one of the sensors seemed to be working but hadn't checked all of them. That one which was working yesterday is not today, but one that was not working yesterday is working today.

Here is the diagnostics of the one that is currently working. zha-b741efc7aea458660e717ed8c3c6cf69-lk ZB-DoorSensor-D0003-320f42b8b6b7f53d574ff2dd38469229.json

ehendrix23 commented 5 hours ago

Just further FYI, they're all the same sensors.

dmulcahey commented 4 hours ago

If you look at the visualization what are the devices connected to?

    "manufacturer": "AL001",
    "model": "WG001-Z01",
    "logical_type": "Router"

What are these?

Any chance the ones that aren't working are routing through a specific device? Maybe try a couple things:

1 - remove power from whatever these routers are for 45ish seconds and then restore it. Give things 5 mins or so and see if things are better.

2 - if # 1 doesn't work try removing the above mentioned devices and see if things stabilize..

ehendrix23 commented 3 hours ago

These are zigbee routers that are powered.

The one that is working (Master Bedroom) is connected to 1 and so are some others.

Giving it a try and will be playing around a bit with it.

Checking in the log for one that worked I could see something like: Decoded ZCL frame: IasZone:status_change_notification(zone_status=<ZoneStatus.Alarm_1|Supervision_reports|Restore_reports: 49>, extended_status=<bitmap8: 0>, zone_id=0, delay=0) 2024-09-27 15:05:58.510 DEBUG (MainThread) [zigpy.zcl] [0x92BA:1:0x0500] Received command 0x00 (TSN 54): status_change_notification

But I did not see that for the ones not working. Am I thus correct in assuming that ZHA is thus not even receiving the status change and hence why it is not working?