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.13k stars 29.8k forks source link

Error setting up entry #122106

Open w1Ngx opened 1 month ago

w1Ngx commented 1 month ago

The problem

Hi,

after one of the recent core updates the upnp integration for my fritz!box 6690 stopped working.

What version of Home Assistant Core has the issue?

2024.7.2

What was the last working version of Home Assistant Core?

2024.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

upnp

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

logger:%20homeassistant.config_entries%0ASource%3A%20config_entries.py%3A586%0AFirst%20occurred%3A%2010%3A56%3A10%20PM%20(2%20occurrences)%0ALast%20logged%3A%2011%3A27%3A16%20PM%0A%0AError%20setting%20up%20entry%20FritzBox-6690%20for%20upnp%0ATraceback%20(most%20recent%20call%20last)%3A%0A%20%20File%20%22/usr/src/homeassistant/homeassistant/config_entries.py%22,%20line%20586,%20in%20async_setup%0A%20%20%20%20result%20=%20await%20component.async_setup_entry(hass,%20self)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%0A%20%20File%20%22/usr/src/homeassistant/homeassistant/components/upnp/__init__.py%22,%20line%20153,%20in%20async_setup_entry%0A%20%20%20%20device_entry%20=%20dev_registry.async_update_device(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%0A%20%20File%20%22/usr/src/homeassistant/homeassistant/helpers/device_registry.py%22,%20line%20990,%20in%20async_update_device%0A%20%20%20%20new_values%5B%22identifiers%22%5D%20=%20self._validate_identifiers(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%0A%20%20File%20%22/usr/src/homeassistant/homeassistant/helpers/device_registry.py%22,%20line%201091,%20in%20_validate_identifiers%0A%20%20%20%20raise%20DeviceIdentifierCollisionError(identifiers,%20existing_device)%0Ahomeassistant.helpers.device_registry.DeviceIdentifierCollisionError:%20Identifiers%20%7B('upnp',%20'uuid:75802409-bccb-40e7-8e6c-0C7274047F19::urn:schemas-upnp-org:device:InternetGatewayDevice:1'),%20('upnp_host',%20'10.0.0.1')%7D%20already%20registered%20with%20DeviceEntry(area_id=None,%20config_entries=%7B'82e74c245d0e426fa7e0854d6806b93b',%20'280e6f5dc927ea2cc819dd91bf329401'%7D,%20configuration_url=None,%20connections=%7B('upnp',%20'uuid:75802409-bccb-40e7-8e6c-0C7274047F19')%7D,%20disabled_by=None,%20entry_type=None,%20hw_version=None,%20id='9d89354062fd0bedfff5e22834a738f6',%20identifiers=%7B('upnp',%20'uuid:75802409-bccb-40e7-9f6c-0C7274047F19::urn:schemas-upnp-org:device:InternetGatewayDevice:2'),%20('upnp_host',%20'10.0.0.1')%7D,%20labels=set(),%20manufacturer='AVM%20Berlin',%20model='FRITZ!Box%206690%20Cable',%20name_by_user=None,%20name='FritzBox-6690',%20primary_config_entry='280e6f5dc927ea2cc819dd91bf329401',%20serial_number=None,%20suggested_area=None,%20sw_version=None,%20via_device_id=None,%20is_new=False)%0A

Additional information

No response

home-assistant[bot] commented 1 month ago

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

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


upnp documentation upnp source (message by IssueLinks)

WilcoDeGroot commented 1 month ago

I have this problem already since october 2023, maybe 1 or 2 months earlier. It started after an update of the kpn experience box 10. I never cared as I didn' see any useful information from this device.

StevenLooman commented 1 month ago

Hi @w1Ngx. Can you enable debug logging and post it here or mail it to me? I am curious what is happening behind the scenes.

StevenLooman commented 1 month ago

@WilcoDeGroot, the KPN Experience Box is not a Fritz!box as far as I know. Can you make a new issue for this?

Also, same as for w1Ngx, can you enable debug logging and post it in that issue, or mail it directly to me?

w1Ngx commented 1 month ago

Hi,

i just deleted all entries, rebooted and had it reconfigured. Now it does not show the error any more.

WilcoDeGroot commented 1 month ago

The following is what I had until your email:

I had 12 entities which showed lots of info about the device, most of them stopped working together with the extenders. All stopped after an update of the Experiabox during our vacation, so I don’t remember the exact date. As I did not find this information relevant I never cared to search for a solution, all this information from the entities is also available directly from the WebUI of the device.

Error messages on screen.

WiFiExtender-246790(Master)

No devices or entities

Failed setup, will retry: Device not discovered: uuid:00000000-0000-0001-0000-709741246790::urn:schemas-upnp-org:device:InternetGatewayDevice:1

WiFiExtender-246790(Master)

No devices or entities

Failed setup, will retry: Device not discovered: uuid:00000000-0000-0001-0000-709741246790::urn:schemas-upnp-org:device:InternetGatewayDevice:1

This is the display log after just reinstalling:

The full log is attached.

Then I removed all three integrations and restarted the HA.

The system found the new devices: Experiabox V10 and only the Wifi-extender Master, not the slave (both master and slave seem to work fine).

Both are installed, the V10 is ok, the extender remains coming with the failure, the slave has not been found but there are no entities.

Short log:

And the full log attached.

In fact I have a HA installed in our workshop there we had the same issue, more or less at the same time (plus/minus a few days) also Experiabox V10.

Met vriendelijke groeten,

Best regards,

Wilco de Groot

From: w1Ngx @.> Sent: Monday, August 5, 2024 9:32 AM To: home-assistant/core @.> Cc: Wilco de Groot @.>; Mention @.> Subject: Re: [home-assistant/core] Error setting up entry (Issue #122106)

Hi,

i just deleted all entries, rebooted and had it reconfigured. Now it does not show the error any more.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/122106#issuecomment-2268371734 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AT6SQUGWCTPQMDE4RBOXDV3ZP4S7ZAVCNFSM6AAAAABLBNYTTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRYGM3TCNZTGQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AT6SQUB7WD3WQ4FUTCBRZU3ZP4S7ZA5CNFSM6AAAAABLBNYTTGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUHGSNRM.gif Message ID: @. @.> >

StevenLooman commented 1 month ago

Thank you @WilcoDeGroot . Unfortunately, you cannot attach files/images when replying to issues via email. I do think you intended to add something. Can you mail it to me directly? You can find my mail address on my profile.