OH3: could not get device definitions from http://192.168.0.1

Hi,

OH3 does not find any devices but when I use the http://192.168.0.1:49000/tr64desc.xml I get the following list with some devices. Because the bridge is offline I cannot add the sub devices manually.

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<root xmlns="urn:dslforum-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<systemVersion>
<HW>233</HW>
<Major>161</Major>
<Minor>7</Minor>
<Patch>21</Patch>
<Buildnumber>81683</Buildnumber>
<Display>161.07.21</Display>
</systemVersion>
<device>
<deviceType>urn:dslforum-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber>- kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:739f2409-bccb-40e7-8e6c-2C3AFDA174DF</UDN>
<iconList>...</iconList>
<serviceList>...</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:LANDevice:1</deviceType>
<friendlyName>LANDevice - FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>LANDevice - FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>LANDevice - FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber>- kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6b-2C3AFDA174DF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:1</serviceType>
<serviceId>
urn:WLANConfiguration-com:serviceId:WLANConfiguration1
</serviceId>
<controlURL>/upnp/control/wlanconfig1</controlURL>
<eventSubURL>/upnp/control/wlanconfig1</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:2</serviceType>
<serviceId>
urn:WLANConfiguration-com:serviceId:WLANConfiguration2
</serviceId>
<controlURL>/upnp/control/wlanconfig2</controlURL>
<eventSubURL>/upnp/control/wlanconfig2</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<!-- 2 -->
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:3</serviceType>
<serviceId>
urn:WLANConfiguration-com:serviceId:WLANConfiguration3
</serviceId>
<controlURL>/upnp/control/wlanconfig3</controlURL>
<eventSubURL>/upnp/control/wlanconfig3</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:Hosts:1</serviceType>
<serviceId>urn:LanDeviceHosts-com:serviceId:Hosts1</serviceId>
<controlURL>/upnp/control/hosts</controlURL>
<eventSubURL>/upnp/control/hosts</eventSubURL>
<SCPDURL>/hostsSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>
urn:dslforum-org:service:LANEthernetInterfaceConfig:1
</serviceType>
<serviceId>
urn:LANEthernetIfCfg-com:serviceId:LANEthernetInterfaceConfig1
</serviceId>
<controlURL>/upnp/control/lanethernetifcfg</controlURL>
<eventSubURL>/upnp/control/lanethernetifcfg</eventSubURL>
<SCPDURL>/ethifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:LANHostConfigManagement:1</serviceType>
<serviceId>
urn:LANHCfgMgm-com:serviceId:LANHostConfigManagement1
</serviceId>
<controlURL>/upnp/control/lanhostconfigmgm</controlURL>
<eventSubURL>/upnp/control/lanhostconfigmgm</eventSubURL>
<SCPDURL>/lanhostconfigmgmSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
<device>
<deviceType>urn:dslforum-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice - FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANDevice - FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>WANDevice - FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber>- kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6a-2C3AFDA174DF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>
urn:dslforum-org:service:WANCommonInterfaceConfig:1
</serviceType>
<serviceId>
urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1
</serviceId>
<controlURL>/upnp/control/wancommonifconfig1</controlURL>
<eventSubURL>/upnp/control/wancommonifconfig1</eventSubURL>
<SCPDURL>/wancommonifconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANDSLInterfaceConfig:1</serviceType>
<serviceId>
urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1
</serviceId>
<controlURL>/upnp/control/wandslifconfig1</controlURL>
<eventSubURL>/upnp/control/wandslifconfig1</eventSubURL>
<SCPDURL>/wandslifconfigSCPD.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice - FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANConnectionDevice - FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>WANConnectionDevice - FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber>- kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e69-2C3AFDA174DF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANDSLLinkConfig:1</serviceType>
<serviceId>
urn:WANDSLLinkConfig-com:serviceId:WANDSLLinkConfig1
</serviceId>
<controlURL>/upnp/control/wandsllinkconfig1</controlURL>
<eventSubURL>/upnp/control/wandsllinkconfig1</eventSubURL>
<SCPDURL>/wandsllinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANEthernetLinkConfig:1</serviceType>
<serviceId>
urn:WANEthernetLinkConfig-com:serviceId:WANEthernetLinkConfig1
</serviceId>
<controlURL>/upnp/control/wanethlinkconfig1</controlURL>
<eventSubURL>/upnp/control/wanethlinkconfig1</eventSubURL>
<SCPDURL>/wanethlinkconfigSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANPPPConnection:1</serviceType>
<serviceId>
urn:WANPPPConnection-com:serviceId:WANPPPConnection1
</serviceId>
<controlURL>/upnp/control/wanpppconn1</controlURL>
<eventSubURL>/upnp/control/wanpppconn1</eventSubURL>
<SCPDURL>/wanpppconnSCPD.xml</SCPDURL>
</service>
<service>
<serviceType>urn:dslforum-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:WANIPConnection-com:serviceId:WANIPConnection1</serviceId>
<controlURL>/upnp/control/wanipconnection1</controlURL>
<eventSubURL>/upnp/control/wanipconnection1</eventSubURL>
<SCPDURL>/wanipconnSCPD.xml</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
</deviceList>
<presentationURL>http://fritz.box</presentationURL>
</device>
</root>

Any ideas?

Thank you.

Michael

Michael, the supporters here tend not to be mind readers. Please help them helping you (esp. #8 and #10)

My goal is to use the TR-064-Binding in Openhab 3 as I have done it with Openhab 2.

My Environment is Debian Buster with openjdk version “11.0.9.1” 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode)
I use Openhab 3.0.1 stable installed with apt install.

The TR-064-Binding does not find any devices but when I use the http-equivalent I see my devices.

The Bridge-Thing-State is
Status: OFFLINE
COMMUNICATION_ERROR
could not get device definitions from http://192.168.0.1

is the correct IP address for your FritzBox? You configured the binding using this IP address and it matches the way you composed the query when testing with the http-equivalent?

I did not use this binding yet, but installed it now for checking this out as I have a FB 6490. From what I can tell right now, the DNS seems to play a vital role: I configured my FB not with a name but with its IP address. The reason for the communication error I get is “java.util.concurrent.ExecutionException: java.net.UnknownHostException: fritz.box: the name or the service is not known.”. As I did not configure the name “fritz.box” anywhere this can only be something from outside the OH system, most likely the DNS.
I was not successfull to circumvent this right now and need to look into it more deeply when I have more time.

Yes, 192.168.0.1 is the correct IP address because with http://192.168.0.1:49000/tr64desc.xml I’ll get the information the binding should read (see my first post).

If I use “192.168.0.1:49000” in the config of the binding I’ll see an error in the openhab.log-file “192.168.0.1:49000:49000” so it should be ok to only put in the ip-address without the port.

Michael, sorry for the delay. I only found time to look into my DNS issues today.
After ensuring my DNS was back to normal I created a TR-064 thing, using the IP address of my FritzBox and it went online immediately:

I got no messages in openhab.log, in events.log the new thing was shown with these entries:

2021-04-08 19:13:12.626 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tr064:fritzbox:944b6549db' changed from UNINITIALIZED to INITIALIZING
2021-04-08 19:13:12.641 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tr064:fritzbox:944b6549db' changed from INITIALIZING to UNKNOWN
2021-04-08 19:13:15.416 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tr064:fritzbox:944b6549db' changed from UNKNOWN to ONLINE

That’s what I did as well, The binding adds the port automatically it seems.

One idea: which user did you use to check with the http-equivalent? Was ist the same user that runs your openhab installation?

For the http-equivalent was / is no user or password necessary. It just works …

I tried the binding with a specific user & password and also the fritzbox signon only with a password.

Maybe it is a 6591-problem with the xml-string witch is different to the other fritzboxes?

I thought about the OS user you used that ran the request: as you have an installation based on apt your OH most likely runs with the user “openhab”. Did you test with that user or with another one?

Why do I ask: trying to reproduce the situation in my setup I initially had difficulties to bring the created TR-064 thing online. The reason were DNS issues. Root cause found and eliminated, issue solved. In addition that verified that the binding basically works in OH3.

In your case we are still looking for the root cause of your issue. Now I want to make sure, that we work on the real issue in your case and do not try to find something that is not really what we are looking for. And as the OH system runs with “openhab”, it seems logical to make a manual request within the same settings as the ones that the OH system is running under, eliminating issues that may be caused by different settings that another OS user might introduce.

I did a test with this rule:

var strHtml = HttpUtil.executeUrl("GET", "http://192.168.0.1:49000/tr64desc.xml", 5000);
Logger.info("Test: " + strHtml.toString());

and found this in my log:

<**root** xmlns="urn:dslforum-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
<**/specVersion**>
<systemVersion>
<HW>233</HW>
<Major>161</Major>
<Minor>7</Minor>
<Patch>21</Patch>
<Buildnumber>81683</Buildnumber>
<Display>161.07.21</Display>
<**/systemVersion**>
<device>
<deviceType>urn:dslforum-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber> - kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:739f2409-bccb-40e7-8e6c-2C3AFDA174DF</UDN>
<iconList>
<icon>
<mimetype>image/gif</mimetype>
<width>118</width>
<height>119</height>
<depth>8</depth>
<url>/ligd.gif</url>
<**/icon**>
<**/iconList**>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:DeviceInfo:1</serviceType>
<serviceId>urn:DeviceInfo-com:serviceId:DeviceInfo1</serviceId>
<controlURL>/upnp/control/deviceinfo</controlURL>
<eventSubURL>/upnp/control/deviceinfo</eventSubURL>
<SCPDURL>/deviceinfoSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:DeviceConfig:1</serviceType>
<serviceId>urn:DeviceConfig-com:serviceId:DeviceConfig1</serviceId>
<controlURL>/upnp/control/deviceconfig</controlURL>
<eventSubURL>/upnp/control/deviceconfig</eventSubURL>
<SCPDURL>/deviceconfigSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:Layer3Forwarding-com:serviceId:Layer3Forwarding1</serviceId>
<controlURL>/upnp/control/layer3forwarding</controlURL>
<eventSubURL>/upnp/control/layer3forwarding</eventSubURL>
<SCPDURL>/layer3forwardingSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:LANConfigSecurity:1</serviceType>
<serviceId>urn:LANConfigSecurity-com:serviceId:LANConfigSecurity1</serviceId>
<controlURL>/upnp/control/lanconfigsecurity</controlURL>
<eventSubURL>/upnp/control/lanconfigsecurity</eventSubURL>
<SCPDURL>/lanconfigsecuritySCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:ManagementServer:1</serviceType>
<serviceId>urn:ManagementServer-com:serviceId:ManagementServer1</serviceId>
<controlURL>/upnp/control/mgmsrv</controlURL>
<eventSubURL>/upnp/control/mgmsrv</eventSubURL>
<SCPDURL>/mgmsrvSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:Time:1</serviceType>
<serviceId>urn:Time-com:serviceId:Time1</serviceId>
<controlURL>/upnp/control/time</controlURL>
<eventSubURL>/upnp/control/time</eventSubURL>
<SCPDURL>/timeSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:UserInterface:1</serviceType>
<serviceId>urn:UserInterface-com:serviceId:UserInterface1</serviceId>
<controlURL>/upnp/control/userif</controlURL>
<eventSubURL>/upnp/control/userif</eventSubURL>
<SCPDURL>/userifSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Storage:1</serviceType>
<serviceId>urn:X_AVM-DE_Storage-com:serviceId:X_AVM-DE_Storage1</serviceId>
<controlURL>/upnp/control/x_storage</controlURL>
<eventSubURL>/upnp/control/x_storage</eventSubURL>
<SCPDURL>/x_storageSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_WebDAVClient:1</serviceType>
<serviceId>urn:X_AVM-DE_WebDAV-com:serviceId:X_AVM-DE_WebDAVClient1</serviceId>
<controlURL>/upnp/control/x_webdav</controlURL>
<eventSubURL>/upnp/control/x_webdav</eventSubURL>
<SCPDURL>/x_webdavSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_UPnP:1</serviceType>
<serviceId>urn:X_AVM-DE_UPnP-com:serviceId:X_AVM-DE_UPnP1</serviceId>
<controlURL>/upnp/control/x_upnp</controlURL>
<eventSubURL>/upnp/control/x_upnp</eventSubURL>
<SCPDURL>/x_upnpSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Speedtest:1</serviceType>
<serviceId>urn:X_AVM-DE_Speedtest-com:serviceId:X_AVM-DE_Speedtest1</serviceId>
<controlURL>/upnp/control/x_speedtest</controlURL>
<eventSubURL>/upnp/control/x_speedtest</eventSubURL>
<SCPDURL>/x_speedtestSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1</serviceType>
<serviceId>urn:X_AVM-DE_RemoteAccess-com:serviceId:X_AVM-DE_RemoteAccess1</serviceId>
<controlURL>/upnp/control/x_remote</controlURL>
<eventSubURL>/upnp/control/x_remote</eventSubURL>
<SCPDURL>/x_remoteSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_MyFritz:1</serviceType>
<serviceId>urn:X_AVM-DE_MyFritz-com:serviceId:X_AVM-DE_MyFritz1</serviceId>
<controlURL>/upnp/control/x_myfritz</controlURL>
<eventSubURL>/upnp/control/x_myfritz</eventSubURL>
<SCPDURL>/x_myfritzSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_VoIP:1</serviceType>
<serviceId>urn:X_VoIP-com:serviceId:X_VoIP1</serviceId>
<controlURL>/upnp/control/x_voip</controlURL>
<eventSubURL>/upnp/control/x_voip</eventSubURL>
<SCPDURL>/x_voipSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_OnTel:1</serviceType>
<serviceId>urn:X_AVM-DE_OnTel-com:serviceId:X_AVM-DE_OnTel1</serviceId>
<controlURL>/upnp/control/x_contact</controlURL>
<eventSubURL>/upnp/control/x_contact</eventSubURL>
<SCPDURL>/x_contactSCPD.xml</SCPDURL>
<**/service**>
<service><serviceType>urn:dslforum-org:service:X_AVM-DE_Dect:1</serviceType><serviceId>urn:X_AVM-DE_Dect-com:serviceId:X_AVM-DE_Dect1</serviceId><controlURL>/upnp/control/x_dect</controlURL><eventSubURL>/upnp/control/x_dect</eventSubURL><SCPDURL>/x_dectSCPD.xml</SCPDURL></service>
<service><serviceType>urn:dslforum-org:service:X_AVM-DE_TAM:1</serviceType><serviceId>urn:X_AVM-DE_TAM-com:serviceId:X_AVM-DE_TAM1</serviceId><controlURL>/upnp/control/x_tam</controlURL><eventSubURL>/upnp/control/x_tam</eventSubURL><SCPDURL>/x_tamSCPD.xml</SCPDURL></service>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_AppSetup:1</serviceType>
<serviceId>urn:X_AVM-DE_AppSetup-com:serviceId:X_AVM-DE_AppSetup1</serviceId>
<controlURL>/upnp/control/x_appsetup</controlURL>
<eventSubURL>/upnp/control/x_appsetup</eventSubURL>
<SCPDURL>/x_appsetupSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeauto:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeauto-com:serviceId:X_AVM-DE_Homeauto1</serviceId>
<controlURL>/upnp/control/x_homeauto</controlURL>
<eventSubURL>/upnp/control/x_homeauto</eventSubURL>
<SCPDURL>/x_homeautoSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Homeplug:1</serviceType>
<serviceId>urn:X_AVM-DE_Homeplug-com:serviceId:X_AVM-DE_Homeplug1</serviceId>
<controlURL>/upnp/control/x_homeplug</controlURL>
<eventSubURL>/upnp/control/x_homeplug</eventSubURL>
<SCPDURL>/x_homeplugSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Filelinks:1</serviceType>
<serviceId>urn:X_AVM-DE_Filelinks-com:serviceId:X_AVM-DE_Filelinks1</serviceId>
<controlURL>/upnp/control/x_filelinks</controlURL>
<eventSubURL>/upnp/control/x_filelinks</eventSubURL>
<SCPDURL>/x_filelinksSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_Auth:1</serviceType>
<serviceId>urn:X_AVM-DE_Auth-com:serviceId:X_AVM-DE_Auth1</serviceId>
<controlURL>/upnp/control/x_auth</controlURL>
<eventSubURL>/upnp/control/x_auth</eventSubURL>
<SCPDURL>/x_authSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:X_AVM-DE_HostFilter:1</serviceType>
<serviceId>urn:X_AVM-DE_HostFilter-com:serviceId:X_AVM-DE_HostFilter1</serviceId>
<controlURL>/upnp/control/x_hostfilter</controlURL>
<eventSubURL>/upnp/control/x_hostfilter</eventSubURL>
<SCPDURL>/x_hostfilterSCPD.xml</SCPDURL>
<**/service**>
<**/serviceList**>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:LANDevice:1</deviceType>
<friendlyName>LANDevice - FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>LANDevice - FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>LANDevice - FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber> - kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6b-2C3AFDA174DF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WLANConfiguration:1</serviceType>
<serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration1</serviceId>
<controlURL>/upnp/control/wlanconfig1</controlURL>
<eventSubURL>/upnp/control/wlanconfig1</eventSubURL>
<SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
<**/service**>
<service><serviceType>urn:dslforum-org:service:WLANConfiguration:2</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration2</serviceId><controlURL>/upnp/control/wlanconfig2</controlURL><eventSubURL>/upnp/control/wlanconfig2</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service><!-- 2 --><service><serviceType>urn:dslforum-org:service:WLANConfiguration:3</serviceType><serviceId>urn:WLANConfiguration-com:serviceId:WLANConfiguration3</serviceId><controlURL>/upnp/control/wlanconfig3</controlURL><eventSubURL>/upnp/control/wlanconfig3</eventSubURL><SCPDURL>/wlanconfigSCPD.xml</SCPDURL></service>
<service>
<serviceType>urn:dslforum-org:service:Hosts:1</serviceType>
<serviceId>urn:LanDeviceHosts-com:serviceId:Hosts1</serviceId>
<controlURL>/upnp/control/hosts</controlURL>
<eventSubURL>/upnp/control/hosts</eventSubURL>
<SCPDURL>/hostsSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:LANEthernetInterfaceConfig:1</serviceType>
<serviceId>urn:LANEthernetIfCfg-com:serviceId:LANEthernetInterfaceConfig1</serviceId>
<controlURL>/upnp/control/lanethernetifcfg</controlURL>
<eventSubURL>/upnp/control/lanethernetifcfg</eventSubURL>
<SCPDURL>/ethifconfigSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:LANHostConfigManagement:1</serviceType>
<serviceId>urn:LANHCfgMgm-com:serviceId:LANHostConfigManagement1</serviceId>
<controlURL>/upnp/control/lanhostconfigmgm</controlURL>
<eventSubURL>/upnp/control/lanhostconfigmgm</eventSubURL>
<SCPDURL>/lanhostconfigmgmSCPD.xml</SCPDURL>
<**/service**>
<**/serviceList**>
<**/device**>
<device>
<deviceType>urn:dslforum-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice - FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANDevice - FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>WANDevice - FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber> - kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e6a-2C3AFDA174DF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:WANCIfConfig-com:serviceId:WANCommonInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wancommonifconfig1</controlURL>
<eventSubURL>/upnp/control/wancommonifconfig1</eventSubURL>
<SCPDURL>/wancommonifconfigSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:WANDSLInterfaceConfig:1</serviceType>
<serviceId>urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1</serviceId>
<controlURL>/upnp/control/wandslifconfig1</controlURL>
<eventSubURL>/upnp/control/wandslifconfig1</eventSubURL>
<SCPDURL>/wandslifconfigSCPD.xml</SCPDURL>
<**/service**>
<**/serviceList**>
<deviceList>
<device>
<deviceType>urn:dslforum-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WANConnectionDevice - FRITZ!Box 6591 Cable (kdg)</friendlyName>
<manufacturer>AVM</manufacturer>
<manufacturerURL>www.avm.de</manufacturerURL>
<modelDescription>WANConnectionDevice - FRITZ!Box 6591 Cable (kdg)</modelDescription>
<modelName>WANConnectionDevice - FRITZ!Box 6591 Cable (kdg)</modelName>
<modelNumber> - kdg</modelNumber>
<modelURL>www.avm.de</modelURL>
<UDN>uuid:75802409-bccb-40e7-8e69-2C3AFDA174DF</UDN>
<UPC>AVM TR-064</UPC>
<serviceList>
<service>
<serviceType>urn:dslforum-org:service:WANDSLLinkConfig:1</serviceType>
<serviceId>urn:WANDSLLinkConfig-com:serviceId:WANDSLLinkConfig1</serviceId>
<controlURL>/upnp/control/wandsllinkconfig1</controlURL>
<eventSubURL>/upnp/control/wandsllinkconfig1</eventSubURL>
<SCPDURL>/wandsllinkconfigSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:WANEthernetLinkConfig:1</serviceType>
<serviceId>urn:WANEthernetLinkConfig-com:serviceId:WANEthernetLinkConfig1</serviceId>
<controlURL>/upnp/control/wanethlinkconfig1</controlURL>
<eventSubURL>/upnp/control/wanethlinkconfig1</eventSubURL>
<SCPDURL>/wanethlinkconfigSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:WANPPPConnection:1</serviceType>
<serviceId>urn:WANPPPConnection-com:serviceId:WANPPPConnection1</serviceId>
<controlURL>/upnp/control/wanpppconn1</controlURL>
<eventSubURL>/upnp/control/wanpppconn1</eventSubURL>
<SCPDURL>/wanpppconnSCPD.xml</SCPDURL>
<**/service**>
<service>
<serviceType>urn:dslforum-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:WANIPConnection-com:serviceId:WANIPConnection1</serviceId>
<controlURL>/upnp/control/wanipconnection1</controlURL>
<eventSubURL>/upnp/control/wanipconnection1</eventSubURL>
<SCPDURL>/wanipconnSCPD.xml</SCPDURL>
<**/service**>
<**/serviceList**>
<**/device**>
<**/deviceList**>
<**/device**>
<**/deviceList**>
<presentationURL>http://fritz.box</presentationURL>
<**/device**>
<**/root**>

Could it be a (sub)-network or broadcast problem?

I took a raspi and installed openhabian, put the network cable direct into the FritzBox and OH3 found the box without any user or password. After I put in the password the FritzBox was online in OH3.

It might be the same as the Sonos binding does also not found my Sonos boxes or the Sonos boxes are only found if I connect the network cable direct to my FritzBox.

Can you put the new RasPi in the same network/subnet as the one you are struggling with?

My RasPi is on another subnet than the FritzBox. The two are separated by a switch and my RasPi is in a VLAN this switch manages. Still no issues for the binding to contact the FritzBox and bringing the TR-064 thing online.

There are two things you can check in addition to bringing the new RasPi into the same subnet as the other one:

  1. There might be something in the configuration/setup of the binding in your struggling OH installation. You can uninstall the binding, shutdown OH, clean the cache, reboot the RasPi, install the binding again and see whether it brings your thing online.
  2. Maybe there is an interference with another binding. I assume on the new RasPi you only installed the TR-064 binding? Or is the set of bindings identical to the OH installation that has issues connecting your FritzBox? IF there is really an interference with another binding, it will be tedious work to narrow that down. The only way to do that - as far as I know - would be to uninstall one binding after the other until TR-064 works properly. I would do that on a copy of your live system if possible.

In this case not. because OH3 runs on a root server and is connected with vpnc to the FritzBox - ip 192.168.0.xx to 192.168.0.1.

Because my Osram Lightify Bridge is not supported in OH3 I setup my Raspi with Raspian and OH2. When I try to get the TR-064 binding in OH 2.5 running it finds my FritzBox and my Powerline 1260E. If I try to sign in to https://192.168.0.1:49443 I find nothing in the logs and have Status “unknown”. Same with “http:192.168.0.1:49000”.

I am surprised because in former days with an older FritzOS (now with 7.21 from Vodafone) it worked.

With OH3 and Port 80

2021-04-12 07:36:37.973 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:  
java.lang.IllegalArgumentException: Invalid URI host: null (authority: 192.168.0.1:80:49000) 
	at org.eclipse.jetty.client.HttpClient.checkHost(HttpClient.java:510) ~[?:?] 
	at org.eclipse.jetty.client.HttpClient.newHttpRequest(HttpClient.java:495) ~[?:?] 
	at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:453) ~[?:?] 
	at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:442) ~[?:?] 
	at org.openhab.binding.tr064.internal.util.Util.getAndUnmarshalXML(Util.java:326) ~[?:?] 
	at org.openhab.binding.tr064.internal.util.SCPDUtil.<init>(SCPDUtil.java:44) ~[?:?] 
	at org.openhab.binding.tr064.internal.Tr064RootHandler.internalInitialize(Tr064RootHandler.java:141) ~[?:?] 
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?] 
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?] 
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?] 
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] 
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] 
	at java.lang.Thread.run(Thread.java:834) [?:?] 

In OH3 without a Port Number I find nothing in the logs and only in the browser

COMMUNICATION_ERROR
java.util.concurrent.ExecutionException: java.net.ConnectException: Verbindungsaufbau abgelehnt

With the used user in OH3 I get with the Kodi FritzBox Connect-Monitor-Plugin a Connection to the FritzBox. In Kodi I don’t know the used port but I works fine. Every time someone calls me the Kodi FritzBox Callmonitor stops the playing and shows me who is calling. So in general the FritzBox Setup should be ok.

In my browser https://192.168.0.1:49443/tr64desc.xml does not work, but “http://192.168.0.1:49000/tr64desc.xml” works.

That points to an issue with secured connections: I assume the certificate the FritzBox offers needs to be made known to the JAVA installation somehow.

With the Vodafone firmware I cannot assist, I have an original FritzBox with plain AVM firmware.

But why shouldn’t and couldn’t I use the normal http-connection? Non-SSL works and in my lan i don’t need ssl …

As long as both communication partners do not enforce a secured connection you are fine with an unsecured one, at least within your own LAN.
I mentioned it in case one of the two participants does enforce encryption. Sonner or later that will happen as some browser vendors already think about disabling plain http connections (I’m not looking forward to that as it makes life more complicated within my own systems without gaining any additional security locally.)

My Vodafone-Fritzbox was not able to create a certificate. It took endless time so I’ve created a certificate on my pc and uploaded it. After that the TR064- and Fritzbox-Binding worked immediately.
Maybe someone can update the docs and put this information in.
Thank you for your support.

Glad to read you solved your issue.
As far as the documentation is concerned: it is a WIKI, everyone can contribute :wink:

I am facing probably the same issues with 3.2.0 M1: https://192.168.179.1:49443/tr64desc.xml works, but I can find the following error in the log:

2021-08-25 14:02:10.253 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tr064:fritzbox:e1a611b727' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): could not get device definitions from 192.168.179.1

It used to work before so I wonder what it might be.