Closed emufan closed 10 months ago
Hey there @mammuth, @aarondavidschneider, @chemelli74, @mib1185, mind taking a look at this issue as it has been labeled with an integration (fritz
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
fritz documentation fritz source (message by IssueLinks)
The same is with me too. Can it be due to the number of devices registered in the Fritzbox? 68 devices are registered in the Fritzbox. Many mobile phones are queried in the logbook, but they are not in the vicinity
---//--- HUAWEI-P30-xxxxxxxxxxxxxx Internet Access nicht mehr verfügbar 15:50:48 - Vor 1 Sekunde Galaxy-S8 Internet Access nicht mehr verfügbar 15:50:48 - Vor 1 Sekunde Galaxy-A51 Internet Access nicht mehr verfügbar 15:50:48 - Vor 1 Sekunde Z-Flip3-von-xxxxxxxxx Internet Access nicht mehr verfügbar 15:50:48 - Vor 1 Sekunde Timmis-S10 Internet Access nicht mehr verfügbar 15:50:48 - Vor 1 Sekunde PC-192-168-179-19 Internet Access nicht mehr verfügbar 15:50:48 - Vor 1 Sekunde ---//---
sven
Hi @emufan
please enable debug logging, restart HA and provide the home-assistant.log after HA is fully started.
To do so add the following to your configuration.yaml
:
logger:
default: info
logs:
homeassistant.components.fritz: debug
fritzconnection: debug
Further please download and provide the diagnostics data for this integration.
Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.
@mib1185 You can see the debut logs for already above.
I double-checked the debug logs and it is starting fast with all the requests
2023-05-23 08:32:47.079 DEBUG (SyncWorker_3) [fritzconnection] requesting: http://192.168.178.1:49000/igddesc.xml
2023-05-23 08:32:47.091 DEBUG (SyncWorker_3) [fritzconnection] <?xml version="1.0"
until
2023-05-23 08:32:54.991 DEBUG (SyncWorker_8) [fritzconnection] requesting: http://192.168.178.1:49000/phonebook.lua?sid=40d5df2a7e9acf07&pbid=0
2023-05-23 08:32:55.031 DEBUG (SyncWorker_9) [fritzconnection] response status: 200
So it takes only some but already ~10 seconds.
But then and already in parallel it starts to call the hosts
2023-05-23 08:32:53.488 DEBUG (SyncWorker_9) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
until
2023-05-23 08:51:10.359 DEBUG (SyncWorker_4) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
and the x_hostfilter form
2023-05-23 08:33:04.296 DEBUG (SyncWorker_3) [fritzconnection]
http://192.168.178.1:49000/upnp/control/x_hostfilter
until
2023-05-23 08:51:17.416 DEBUG (SyncWorker_7) [fritzconnection]
http://192.168.178.1:49000/upnp/control/x_hostfilter
Overall already more than 20 seconds for this.
And within these calls, several calls for each device, e.g.
2023-05-23 08:33:17.633 DEBUG (SyncWorker_18) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:33:17.633 DEBUG (SyncWorker_18) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:33:17.686 DEBUG (SyncWorker_18) [fritzconnection] response status: 200
2023-05-23 08:33:17.687 DEBUG (SyncWorker_18) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:34:03.923 DEBUG (SyncWorker_21) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:34:03.923 DEBUG (SyncWorker_21) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:34:03.993 DEBUG (SyncWorker_21) [fritzconnection] response status: 200
2023-05-23 08:34:03.993 DEBUG (SyncWorker_21) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:34:50.864 DEBUG (SyncWorker_8) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:34:50.864 DEBUG (SyncWorker_8) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:34:50.933 DEBUG (SyncWorker_8) [fritzconnection] response status: 200
2023-05-23 08:34:50.933 DEBUG (SyncWorker_8) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:35:38.953 DEBUG (SyncWorker_20) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:35:38.953 DEBUG (SyncWorker_20) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:35:39.011 DEBUG (SyncWorker_20) [fritzconnection] response status: 200
2023-05-23 08:35:39.011 DEBUG (SyncWorker_20) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:36:25.697 DEBUG (SyncWorker_9) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:36:25.697 DEBUG (SyncWorker_9) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:36:25.751 DEBUG (SyncWorker_9) [fritzconnection] response status: 200
2023-05-23 08:36:25.751 DEBUG (SyncWorker_9) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:37:08.965 DEBUG (SyncWorker_10) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:37:08.965 DEBUG (SyncWorker_10) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:37:09.032 DEBUG (SyncWorker_10) [fritzconnection] response status: 200
2023-05-23 08:37:09.033 DEBUG (SyncWorker_10) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:37:55.861 DEBUG (SyncWorker_0) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:37:55.861 DEBUG (SyncWorker_0) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:37:55.930 DEBUG (SyncWorker_0) [fritzconnection] response status: 200
2023-05-23 08:37:55.931 DEBUG (SyncWorker_0) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:38:42.895 DEBUG (SyncWorker_19) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:38:42.895 DEBUG (SyncWorker_19) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:38:42.981 DEBUG (SyncWorker_19) [fritzconnection] response status: 200
2023-05-23 08:38:42.981 DEBUG (SyncWorker_19) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:39:29.987 DEBUG (SyncWorker_2) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:39:29.988 DEBUG (SyncWorker_2) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:39:30.046 DEBUG (SyncWorker_2) [fritzconnection] response status: 200
2023-05-23 08:39:30.046 DEBUG (SyncWorker_2) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:40:15.861 DEBUG (SyncWorker_19) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:40:15.861 DEBUG (SyncWorker_19) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:40:15.918 DEBUG (SyncWorker_19) [fritzconnection] response status: 200
2023-05-23 08:40:15.918 DEBUG (SyncWorker_19) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:41:02.895 DEBUG (SyncWorker_22) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:41:02.896 DEBUG (SyncWorker_22) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:41:02.957 DEBUG (SyncWorker_22) [fritzconnection] response status: 200
2023-05-23 08:41:02.958 DEBUG (SyncWorker_22) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:41:45.755 DEBUG (SyncWorker_11) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:41:45.755 DEBUG (SyncWorker_11) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:41:45.810 DEBUG (SyncWorker_11) [fritzconnection] response status: 200
2023-05-23 08:41:45.810 DEBUG (SyncWorker_11) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:42:28.861 DEBUG (SyncWorker_5) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:42:28.861 DEBUG (SyncWorker_5) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:42:28.931 DEBUG (SyncWorker_5) [fritzconnection] response status: 200
2023-05-23 08:42:28.931 DEBUG (SyncWorker_5) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:43:15.901 DEBUG (SyncWorker_22) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:43:15.901 DEBUG (SyncWorker_22) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:43:15.972 DEBUG (SyncWorker_22) [fritzconnection] response status: 200
2023-05-23 08:43:15.972 DEBUG (SyncWorker_22) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:44:03.070 DEBUG (SyncWorker_14) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:44:03.070 DEBUG (SyncWorker_14) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:44:03.124 DEBUG (SyncWorker_14) [fritzconnection] response status: 200
2023-05-23 08:44:03.124 DEBUG (SyncWorker_14) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:44:48.880 DEBUG (SyncWorker_5) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:44:48.880 DEBUG (SyncWorker_5) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:44:48.952 DEBUG (SyncWorker_5) [fritzconnection] response status: 200
2023-05-23 08:44:48.953 DEBUG (SyncWorker_5) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:45:35.928 DEBUG (SyncWorker_7) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:45:35.928 DEBUG (SyncWorker_7) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:45:35.996 DEBUG (SyncWorker_7) [fritzconnection] response status: 200
2023-05-23 08:45:35.996 DEBUG (SyncWorker_7) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:46:22.743 DEBUG (SyncWorker_17) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:46:22.743 DEBUG (SyncWorker_17) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:46:22.795 DEBUG (SyncWorker_17) [fritzconnection] response status: 200
2023-05-23 08:46:22.795 DEBUG (SyncWorker_17) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:47:06.902 DEBUG (SyncWorker_21) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:47:06.902 DEBUG (SyncWorker_21) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:47:06.956 DEBUG (SyncWorker_21) [fritzconnection] response status: 200
2023-05-23 08:47:06.956 DEBUG (SyncWorker_21) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:47:53.970 DEBUG (SyncWorker_4) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:47:53.970 DEBUG (SyncWorker_4) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:47:54.024 DEBUG (SyncWorker_4) [fritzconnection] response status: 200
2023-05-23 08:47:54.024 DEBUG (SyncWorker_4) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:48:40.961 DEBUG (SyncWorker_20) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:48:40.961 DEBUG (SyncWorker_20) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>11</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:48:41.025 DEBUG (SyncWorker_20) [fritzconnection] response status: 200
2023-05-23 08:48:41.025 DEBUG (SyncWorker_20) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:49:27.923 DEBUG (SyncWorker_0) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:49:27.923 DEBUG (SyncWorker_0) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:49:27.980 DEBUG (SyncWorker_0) [fritzconnection] response status: 200
2023-05-23 08:49:27.981 DEBUG (SyncWorker_0) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:50:18.128 DEBUG (SyncWorker_13) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:50:18.129 DEBUG (SyncWorker_13) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:50:18.183 DEBUG (SyncWorker_13) [fritzconnection] response status: 200
2023-05-23 08:50:18.184 DEBUG (SyncWorker_13) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
2023-05-23 08:51:05.722 DEBUG (SyncWorker_15) [fritzconnection]
http://192.168.178.1:49000/upnp/control/hosts
2023-05-23 08:51:05.722 DEBUG (SyncWorker_15) [fritzconnection] b'<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:GetGenericHostEntry xmlns:u="urn:dslforum-org:service:Hosts:1"><NewIndex>10</NewIndex></u:GetGenericHostEntry></s:Body></s:Envelope>'
2023-05-23 08:51:05.778 DEBUG (SyncWorker_15) [fritzconnection] response status: 200
2023-05-23 08:51:05.778 DEBUG (SyncWorker_15) [fritzconnection] <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1">
<NewIPAddress>aaa.bbb.ccc.ddd</NewIPAddress>
<NewAddressSource>DHCP</NewAddressSource>
<NewLeaseTimeRemaining>0</NewLeaseTimeRemaining>
<NewMACAddress>aa:bb:cc:dd:ee:ff</NewMACAddress>
<NewInterfaceType></NewInterfaceType>
<NewActive>0</NewActive>
<NewHostName>Devicename</NewHostName>
I would need to have it in context, so would still need the whole logfile, but not only some picked parts of it.
Ofc I can provide more, whatever context you need. But cannot non-disclose my whole setup of devices, IPs,, MAC addresses, phone information, etc.
So far I can see, I reported the start of the calls and alle calls for one device. There are only the calls for the other devices in between and no other line. But I can be wrong ofc. So if you are expecting other lines to see or which context you are referring, I will add ofc course.
I fully understand your concerns about sensitive data, therefore don't hesitate to contact me at discord MiB1185#1922
.
Further I cannot predict what is going wrong, so I also cannot predict what exact log messages I want/need to see or not - I'll know it, when I see it (or just not) 😉
Here the whole log, IDs, IPs and Numbers anonymized. Why the bunch of hosts and x_hostfilter calls in general? Not every host and x_hostfilter called is for the same device. There are 80-100 unique devices and every is called 25-30 times. As in the one example above.
And as in example above for one device, e.g. deflectionlist is called 25 times, DeviceLog 31 times, etc. times as well.
will have a look into the logs during upcoming days
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
still valid
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Not solved
this will be "fixed" as soon as we get switched to the get_hosts_attributes
call, which uses another method to gather all hosts data in one call from the fritzbox
The problem
Hi *,
Since (I think 2023.4.x or with one of the last fritzconnection bumps) the load time of the Fritz integration jumped on position 1 of my HA environment. With over one minute in average.
I double-checked the debug logs and it is starting fast with all the requests
until
So it takes only some but already ~10 seconds.
But then and already in parallel it starts to call the hosts
until
and the x_hostfilter form
until
Overall already more than 20 seconds for this.
And on top of this it is called a lot of time for every and each same device, see log with only one example below. Every of this 24 calls in this example for only one of the devices has the same MAC and IP and Name, which I have hidden.
For what are all the hosts calls needed in general and why to have them in this example 24 times over a duration of 20-30 seconds again and again? 😎
Thanks and best regards
What version of Home Assistant Core has the issue?
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Fritz
Link to integration documentation on our website
https://www.home-assistant.io/integrations/fritz/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response