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
72.15k stars 30.19k forks source link

Matter integration "Needs attention" "Failed to setup" after recent update to home assistant. #116566

Closed g0hww closed 5 months ago

g0hww commented 5 months ago

The problem

There was an update to the Matter server a short time ago and that went OK, but an update just now to home assistant seems to have borked something. I am only using Matter with an Aqara M2 Hub.

Log shows the following error.

Logger: homeassistant.config_entries Source: config_entries.py:575 First occurred: 21:56:46 (1 occurrences) Last logged: 21:56:46

Error setting up entry Matter for matter Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/matter/init.py", line 129, in async_setup_entry await matter.setup_nodes() File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 63, in setup_nodes self._setup_node(node) File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 148, in _setup_node self._setup_endpoint(endpoint) File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 225, in _setup_endpoint new_entity = entity_info.entity_class( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 87, in init self._update_from_device() File "/usr/src/homeassistant/homeassistant/components/matter/light.py", line 354, in _update_from_device self._check_transition_blocklist() File "/usr/src/homeassistant/homeassistant/components/matter/light.py", line 403, in _check_transition_blocklist device_info.productID, ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'BridgedDeviceBasicInformation' object has no attribute 'productID'. Did you mean: 'productURL'?

What version of Home Assistant Core has the issue?

core-2024.5.0

What was the last working version of Home Assistant Core?

previous

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Matter

Link to integration documentation on our website

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

Diagnostics information

home-assistant_matter_2024-05-01T21-05-53.215Z.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 months ago

Hey there @home-assistant/matter, mind taking a look at this issue as it has been labeled with an integration (matter) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `matter` 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 matter` 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)


matter documentation matter source (message by IssueLinks)

g0hww commented 5 months ago

The good news is that I did a full backup on 202404026 and after I restored that it is working nicely again. After the restore I am offered the following upgrades. ESPHome -> 2024.4.2 (I previously did that but currently have no ESP devices in use) Matter Server ->5.6.0 (I previously did that and there were no issues) HA Core -> 2024.5.0 **** This is where it went wrong for me.

Currently now on Core 2024.4.4 Supervisor 2024.04.4 OS 12.2 Frontend 20240404.2

Hope this helps.

yentelmanero commented 5 months ago

have the same issue as well after updating to 2024.5, although I am not using the same hub, but the ikea dirigera

marcelveldt commented 5 months ago

a fix is waiting to be merged so this will be fixed in the next ha hotfix 2024.5.1. Until then, either revert or live without matter for a day or two ;-)

Mutley247365 commented 5 months ago

a fix is waiting to be merged so this will be fixed in the next ha hotfix 2024.5.1. Until then, either revert or live without matter for a day or two ;-)

Fingers crossed

fuzzysb commented 5 months ago

ok great its identified, I also have an M2 Hub also with Aqara Ceiling lights paired. I just updated today i can do without lights for two nights.....

image

Only joking will use the Aqara app for the moment 👍

moexpa commented 5 months ago

Same issue , paired with aqara m2 hub

barnettjd commented 5 months ago

Same issue. Tapo H200 hub.

MattWestb commented 5 months ago

IKEA Dirigera beta matter bridge is have the same problem.

Tykwondo1 commented 5 months ago

Same issue Aqara Hub

jscherry commented 5 months ago

Same issue skyconnect

MattWestb commented 5 months ago

Then its the planed release of the fix (HA 2024.5.1) ?

frishcat commented 5 months ago

Same issue Aqara M2 / Aqara M3 😢🙏

einord commented 5 months ago

Then its the planed release of the fix (HA 2024.5.1) ?

Seems like it. Usually HA releases a hotfix update once every week.

TH3xR34P3R commented 5 months ago

Just installed 2024.5.1 and the issue with matter has been resolved on my end, everything is stable again. I am rotating my backups with a fresh copy of this stable state of my VM instance and its updated snapshots.

jackc94 commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

TH3xR34P3R commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

In order to have a matter device connected and show up to more than one ecosystem you need to share it from the first ecosystem you have connected it to, you can't connect it directly to more than one primary hub at a time otherwise.

In the case of Home assistant you click or tap on share device:

Screenshot 2024-05-06 165127

jackc94 commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

In order to have a matter device connected and show up to more than one ecosystem you need to share it from the first ecosystem you have connected it to, you can't connect it directly to more than one primary hub at a time otherwise.

In the case of Home assistant you click or tap on share device:

Screenshot 2024-05-06 165127

I am… from the Apple Home app I navigate to the Aqara Matter Hub and click Turn on Paring Mode at the bottom which provides me with a setup code from Apple Home. This is what I described above and is failing. The fact I get a notification from Apple Home suggests the process starts (the hand off) but then doesn’t complete.

TH3xR34P3R commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

In order to have a matter device connected and show up to more than one ecosystem you need to share it from the first ecosystem you have connected it to, you can't connect it directly to more than one primary hub at a time otherwise. In the case of Home assistant you click or tap on share device: Screenshot 2024-05-06 165127

I am… from the Apple Home app I navigate to the Aqara Matter Hub and click Turn on Paring Mode at the bottom which provides me with a setup code from Apple Home. This is what I described above and is failing. The fact I get a notification from Apple Home suggests the process starts (the hand off) but then doesn’t complete.

Make sure you are following the instructions as per this video guide:

Share Matter device from Apple Home to Home Assistant

jackc94 commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

In order to have a matter device connected and show up to more than one ecosystem you need to share it from the first ecosystem you have connected it to, you can't connect it directly to more than one primary hub at a time otherwise. In the case of Home assistant you click or tap on share device: Screenshot 2024-05-06 165127

I am… from the Apple Home app I navigate to the Aqara Matter Hub and click Turn on Paring Mode at the bottom which provides me with a setup code from Apple Home. This is what I described above and is failing. The fact I get a notification from Apple Home suggests the process starts (the hand off) but then doesn’t complete.

Make sure you are following the instructions as per this video guide:

Share Matter device from Apple Home to Home Assistant

Yup… slightly outdated video but that’s exactly what I am doing… will reboot the Aqara hub and see if that makes any difference.

TH3xR34P3R commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

In order to have a matter device connected and show up to more than one ecosystem you need to share it from the first ecosystem you have connected it to, you can't connect it directly to more than one primary hub at a time otherwise. In the case of Home assistant you click or tap on share device: Screenshot 2024-05-06 165127

I am… from the Apple Home app I navigate to the Aqara Matter Hub and click Turn on Paring Mode at the bottom which provides me with a setup code from Apple Home. This is what I described above and is failing. The fact I get a notification from Apple Home suggests the process starts (the hand off) but then doesn’t complete.

Make sure you are following the instructions as per this video guide: Share Matter device from Apple Home to Home Assistant

Yup… slightly outdated video but that’s exactly what I am doing… will reboot the Aqara hub and see if that makes any difference.

One thing I forgot to mention is that if your phone gets stuck in the connectivity phase when adding a matter device to home assistant then just restart the phone.

jackc94 commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

In order to have a matter device connected and show up to more than one ecosystem you need to share it from the first ecosystem you have connected it to, you can't connect it directly to more than one primary hub at a time otherwise. In the case of Home assistant you click or tap on share device: Screenshot 2024-05-06 165127

I am… from the Apple Home app I navigate to the Aqara Matter Hub and click Turn on Paring Mode at the bottom which provides me with a setup code from Apple Home. This is what I described above and is failing. The fact I get a notification from Apple Home suggests the process starts (the hand off) but then doesn’t complete.

Make sure you are following the instructions as per this video guide: Share Matter device from Apple Home to Home Assistant

Yup… slightly outdated video but that’s exactly what I am doing… will reboot the Aqara hub and see if that makes any difference.

One thing I forgot to mention is that if your phone gets stuck in the connectivity phase when adding a matter device to home assistant then just restart the phone.

Good suggestion but sadly didn’t change the outcome… still unable to add into HA.

jackc94 commented 5 months ago

Still unable to add a Aqara Matter Hub M2 into HA… it’s working fine in Apple HomeKit when connected via Matter. I obtain the pairing code, get a HomeKit notification saying “Accessory Added to Matter Test. Your Aqara Hub Matter Bridge has been added to your home.” But the wheel just spins and eventually fails. Nothing has appeared in the logs. I am running HA in Docker on a Raspberry Pi 4 B+. Matter Server is running in a separate container and has been added to HA successfully… just can’t add a device. HA Core 2024.5.1 HA Frontend 20240501.0

In order to have a matter device connected and show up to more than one ecosystem you need to share it from the first ecosystem you have connected it to, you can't connect it directly to more than one primary hub at a time otherwise. In the case of Home assistant you click or tap on share device: Screenshot 2024-05-06 165127

I am… from the Apple Home app I navigate to the Aqara Matter Hub and click Turn on Paring Mode at the bottom which provides me with a setup code from Apple Home. This is what I described above and is failing. The fact I get a notification from Apple Home suggests the process starts (the hand off) but then doesn’t complete.

Make sure you are following the instructions as per this video guide: Share Matter device from Apple Home to Home Assistant

Yup… slightly outdated video but that’s exactly what I am doing… will reboot the Aqara hub and see if that makes any difference.

One thing I forgot to mention is that if your phone gets stuck in the connectivity phase when adding a matter device to home assistant then just restart the phone.

Good suggestion but sadly didn’t change the outcome… still unable to add into HA.

@frenck Any thoughts?

jackc94 commented 4 months ago

Sorted… didn’t realise Matter used ipv6 to work… I’d disabled it… thanks for your help @TH3xR34P3R

TH3xR34P3R commented 4 months ago

Sorted… didn’t realise Matter used ipv6 to work… I’d disabled it… thanks for your help @TH3xR34P3R

No worries, long as things are working now for your setup. It's not always obvious at first, the only time I have had to disable ipv6 was at the client level when the ubisoft launcher had fits with it enabled but always had it on at the network level.

akzov commented 4 months ago

On 2024.5.4 and still have "Failed setup, will retry"

akzov commented 4 months ago

Cancel that, updated to 6.0.1 then deleted/added the integration and it's fixed