[OH3] TR-064 - Connection refused

I have a problem that I can not get to my FritzBox 7520 with the TR-064 binding.
Current error message in event.log:

2021-01-08 10:35:28.942 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tr064:fritzbox:d15c81d37e' changed from OFFLINE (COMMUNICATION_ERROR): java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused to UNKNOWN
2021-01-08 10:35:30.773 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tr064:fritzbox:d15c81d37e' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused

Actions in FB:

  • User created with password and assigned authorization
  • TR-064 enabled and working

see info about: http://192.168.0.10:49000//tr64desc.xml

<systemVersion>
<HW>247</HW>
<Major>175</Major>
<Minor>7</Minor>
<Patch>21</Patch>
<Buildnumber>82822</Buildnumber>
<Display>175.07.21</Display>
</systemVersion>

Connection refused means that you probably have not enabled app access in the fritzbox.

If that’s what you mean, that’s what I did.


Otherwise the TR-064 queries would not work.

And that’s what I set in the user:

Please set the log level to TRACE and look for the request immediately before the state changes.

her the new log-files:
openhab.log (356.3 KB)
events.log (498 Bytes)

Interesting Part is missing. What happened after that last request? There should be a response with the security port as answer. Then the binding should change the endpoint address to a https address

I have look at your code and I think that it throws the error in line 169 in the file SOAPConnector.java. Can I test this anyway with SoapUI ?

I had a similar issue with the OH3 TR064 binding. Previously I used the old fritzboxtr064 binding, so the issue is probably not related to the configuration of the fritzbox.

I created the bridge thing, as described in the documentation, but the UI reported a connection issue. As the string “fritz.box” flashed up for a short time a got a clue to the problem.

I am using the Fritzbox only as a WLAN access point, not as an internet router. Therefore the name fritz.box can not be resoved in my local network. After adding fritz.box to the /etc/hosts file the binding could connect to the Fritzbox.

I assume, that the binding is not using the host address as configured in the .things file (it is displayed in the UI as well), but always the address “fritz.box”

I tested the tip from @juelicher with the fritz.box in the hosts file and then it works.

Only unfortunately this does not help me, because I have 3 Fritzboxes in my network:

1x FB7590 - as router & DECT telephony.

UID: tr064:fritzbox:b8969d869f
label: FritzBox
thingTypeUID: tr064:fritzbox
configuration:
  phonebookInterval: 600
  host: fb7590
  refresh: 60
  password: xxxxxx
  user: openhabian

1x FB7490 (WLAN children)

UID: tr064:fritzbox:b8969d869f
label: FritzBox
thingTypeUID: tr064:fritzbox
configuration:
  phonebookInterval: 600
  host: fb7490
  refresh: 60
  password: xxxxxx
  user: openhabian

1x FB7520 (WLAN parent)

UID: tr064:fritzbox:b8969d869f
label: FritzBox
thingTypeUID: tr064:fritzbox
configuration:
  phonebookInterval: 600
  host: fb7520
  refresh: 60
  password: xxxxxx
  user: openhabian

And I would like to access all 3 via OPENHAB3.

This is already fixed in the latest code.

how can I try this version on my system ?