home-assistant / home-assistant/core
FRITZ! integration keeps losing connection to FRITZ!Box 7690 (ConnectTimeout on port 49000 / duplicate unique IDs)
- Dominant language
- Python
- Stars
- 90.8k
- Forks
- 38.7k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 597
Description
### The problem
The FRITZ! integration repeatedly disconnects from my FRITZ!Box 7690. Other FRITZ! devices on the network (6690 Cable, 7590, 7530, 7590 AX, Repeater 6000) remain completely stable.
The connection previously worked fine (even after the initial update to the current FRITZ!OS Labor version). However, after a power cycle of the 7690, the integration connects initially, but drops connection after a few minutes due to 60-second connection timeouts against TR-064 / UPnP (`port 49000`). When it attempts to reload, it additionally throws duplicate unique ID warnings for sensors. At the same time, `pyfritzhome` polling continues without issues.
### What version of Home Assistant Core has the issue?
2026.9.0
### What was the last working version of Home Assistant Core?
2026.9.0
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
FRITZ! Tools (fritz)
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/fritz/
### Diagnostics information
[config_entry-fritz-01KG5D4WYZTDP3TS6GH4F77DMJ.json](https://github.com/user-attachments/files/31917538/config_entry-fritz-01KG5D4WYZTDP3TS6GH4F77DMJ.json)
### Example YAML snippet
```yaml
# Configured via UI
```
### Anything in the logs that might be useful for us?
```txt
2026-09-07 03:36:58.392 WARNING (MainThread) [homeassistant.helpers.entity] Update of image.fritz_box_7690_pentagon_wlan_gastzugang is taking over 10 seconds[cite: 1]
2026-09-07 03:37:18.392 WARNING (MainThread) [homeassistant.components.image] Updating fritz image took longer than the scheduled update interval 0:00:30[cite: 1]
2026-09-07 03:41:01.698 ERROR (MainThread) [homeassistant.components.fritz] Error fetching fritz-192.168.178.42-coordinator data: Error while updating the data: HTTPConnectionPool(host='192.168.178.42', port=49000): Max retries exceeded with url: /upnp/control/hosts (Caused by ConnectTimeoutError(, 'Connection to 192.168.178.42 timed out. (connect timeout=60.0)'))[cite: 1]
2026-09-07 03:42:16.196 ERROR (MainThread) [homeassistant.components.sensor] Platform fritz does not generate unique IDs. ID 34E1A9F446CE-external_ip already exists - ignoring sensor.fritz_box_7690_externe_ip[cite: 1]
2026-09-07 03:42:16.196 ERROR (MainThread) [homeassistant.components.sensor] Platform fritz does not generate unique IDs. ID 34E1A9F446CE-connection_uptime already exists - ignoring sensor.fritz_box_7690_verbindungsverfugbarkeit[cite: 1]
2026-09-07 03:42:16.197 ERROR (MainThread) [homeassistant.components.sensor] Platform fritz does not generate unique IDs. ID 34E1A9F446CE-device_uptime already exists - ignoring sensor.fritz_box_7690_letzter_neustart[cite: 1]
2026-09-07 03:42:43.603 ERROR (MainThread) [homeassistant.components.binary_sensor] Setup of platform fritz is taking longer than 60 seconds. Startup will proceed without waiting any longer.[cite: 1]
2026-09-07 03:42:43.678 ERROR (MainThread) [homeassistant.components.fritz] Service/Action Error: cannot execute service WANCommonInterfaceConfig with action GetCommonLinkProperties[cite: 1]
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='192.168.178.42', port=49000): Max retries exceeded with url: /upnp/control/wancommonifconfig1 (Caused by ConnectTimeoutError(, 'Connection to 192.168.178.42 timed out. (connect timeout=60.0)'))[cite: 1]
2026-09-07 03:48:15.109 ERROR (MainThread) [homeassistant.components.fritz] Timeout fetching fritz-192.168.178.42-coordinator data[cite: 1]
2026-09-07 03:58:37.244 ERROR (MainThread) [homeassistant.components.fritz] Unexpected error fetching fritz-192.168.178.42-coordinator data[cite: 1]
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.178.42', port=49000): Read timed out. (read timeout=60.0)[cite: 1]
homeassistant.exceptions.HomeAssistantError: Error refreshing hosts info[cite: 1]
2026-09-07 04:02:59.469 ERROR (SyncWorker_50) [fritzconnection] Unable to get a connection: HTTPConnectionPool(host='192.168.178.42', port=49000): Max retries exceeded with url: /igddesc.xml (Caused by ConnectTimeoutError(, 'Connection to 192.168.178.42 timed out. (connect timeout=60.0)'))[cite: 1]
2026-09-07 04:02:59.470 INFO (MainThread) [homeassistant.components.fritz] Config entry 'FRITZ!Box 7690' for fritz integration not ready yet: Error connecting to the FRITZ!Box: Unable to get a connection: HTTPConnectionPool(host='192.168.178.42', port=49000): Max retries exceeded with url: /igddesc.xml (Caused by ConnectTimeoutError(, 'Connection to 192.168.178.42 timed out. (connect timeout=60.0)')); Retrying in 5 seconds[cite: 1]
```
### Additional information
Hardware: FRITZ!Box 7690
Firmware: FRITZ!OS Labor (8.40-136175 vom 02.09.2026)
Note: `pyfritzhome` runs continuously on the same setup and network without dropping or timing out. Only TR-064 calls on port 49000 fail consistently after a short uptime.
Contributor guide
Assessment
This issue has not been assessed yet.