dimmenhau
(Dietmar Immenhausen)
January 8, 2021, 9:55am
1
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>
J-N-K
(Jan N. Klug)
January 8, 2021, 7:34pm
2
Connection refused means that you probably have not enabled app access in the fritzbox.
dimmenhau
(Dietmar Immenhausen)
January 9, 2021, 7:50am
3
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:
J-N-K
(Jan N. Klug)
January 9, 2021, 7:54am
4
Please set the log level to TRACE and look for the request immediately before the state changes.
dimmenhau
(Dietmar Immenhausen)
January 10, 2021, 7:53am
6
her the new log-files:
openhab.log (356.3 KB)
events.log (498 Bytes)
J-N-K
(Jan N. Klug)
January 10, 2021, 2:44pm
7
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
dimmenhau
(Dietmar Immenhausen)
January 10, 2021, 8:01pm
8
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 ?
juelicher
(Juelicher)
January 14, 2021, 1:38pm
9
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”
dimmenhau
(Dietmar Immenhausen)
January 14, 2021, 5:30pm
10
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.
J-N-K
(Jan N. Klug)
January 14, 2021, 6:01pm
11
This is already fixed in the latest code.
dimmenhau
(Dietmar Immenhausen)
January 14, 2021, 6:58pm
12
how can I try this version on my system ?