Fritzbox Binding (using TR064 protocol) and FritzBox 6590 (Cable) or 7590

moin,
did anyone use this binding with the new FritzBox 6590 (or 7590)?
I see the following error in the log file and dont know what to do.
Any idea?
Need more information?


2017-09-25 18:35:42.350 [WARN ] [itzboxtr064.internal.SoapValueParser] - Fault received from FritzBox for item wanip in SOAP response <?xml version="1.0"?><s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/” s:encodingStyle="http://schemas.xmlsoap.org/soap/en
<s:Body>
<s:Fault>
< faultcode>s:Client
< faultstring>UPnPError
< detail>
< UPnPError xmlns=“urn:dslforum-org:control-1-0”>
< errorCode>401
< errorDescription>Invalid Action
< /UPnPError>
< /detail>
< /s:Fault>
< /s:Body>
< /s:Envelope>


Same error here (FritzBox 6490 Cable):
2017-11-02 13:42:59.213 [WARN ] [itzboxtr064.internal.SoapValueParser] - Fault received from FritzBox for item wanip in SOAP response <?xml version="1.0"?><s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/” s:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”>

Same error also for a 6490 cable. I used a 7490 before, without having any pnroblems, just had to change because of an provider change.

Could anybode solve this problem by now?

moin,
to work with the tr064 protocol I found a work around.
you must comment out the following items:
//String fboxWanIP “FBox WAN IP [%s]” {fritzboxtr064=“wanip”}
//Contact fboxDslEnable “FBox DSL Enable [%s]” {fritzboxtr064=“dslEnable”}
//String fboxDslStatus “FBox DSL Status [%s]” {fritzboxtr064=“dslStatus”}
//Number fboxDslUpstreamCurrRate “DSL Upstream Current [%s mbit/s]” {fritzboxtr064=“dslUpstreamCurrRate”}
//Number fboxDslDownstreamCurrRate “DSL Downstream Current [%s mbit/s]” {fritzboxtr064=“dslDownstreamCurrRate”}
//Number fboxDslUpstreamMaxRate “DSL Upstream Max [%s mbit/s]” {fritzboxtr064=“dslUpstreamMaxRate”}
//Number fboxDslDownstreamMaxRate “DSL Downstream Max [%s mbit/s]” {fritzboxtr064=“dslDownstreamMaxRate”}
//Number fboxDslUpstreamNoiseMargin “DSL Upstream Noise Margin [%s dB10]" {fritzboxtr064=“dslUpstreamNoiseMargin”}
//Number fboxDslDownstreamNoiseMargin "DSL Downstream Noise Margin [%s dB
10]” {fritzboxtr064=“dslDownstreamNoiseMargin”}
//Number fboxDslUpstreamAttenuation “DSL Upstream Attenuation [%s dB10]" {fritzboxtr064=“dslUpstreamAttenuation”}
//Number fboxDslDownstreamAttenuation "DSL Downstream Attenuation [%s dB
10]” {fritzboxtr064=“dslDownstreamAttenuation”}
//Number fboxDslFECErrors “DSL FEC Errors [%s]” {fritzboxtr064=“dslFECErrors”}
//Number fboxDslHECErrors “DSL HEC Errors [%s]” {fritzboxtr064=“dslHECErrors”}
//Number fboxDslCRCErrors “DSL CRC Errors [%s]” {fritzboxtr064=“dslCRCErrors”}

with other words: all items that deal with DSL. The cable version has no DSL.
Perhaps it is a good idea to point to this point in the manual of the protocol?

1 Like

Thanks for your reply. I think it is a goood idea to point out the differences of the dsl and cable version of the fritzbox.

Hi there,
I´m glad to read, that this TR064-binding seems to work for someone…:wink:
I started with openhab2 short time ago an noticed, that there are elder Bindings (not native 2.x)
As I own a FritzBox too, I thought that fits perfect to my needs but if I install the binding no thing apears in the inbox of PaperUI. If there´s no thing - there´s no channel to link items to…
I created an .item file in /etc/openhab2/items but they don´t seem to get read.
I actually use openhab2.2 stable and if anyone has a hint for me to get the binding working - I would appreciate that!
thanks in advance
Klaus

Hi there,

I’m using the 7590 for a few months now and don’t miss anything. DSL state, WAN IP, guest wifi control and telephony integration working well.

I’m on openhab 2.2 on a raspberry pi 3.

Sascha

Hi Sasch_,
thanks for your reply. How did you get the binding to work. Do you have a step by step guide for me?
Did you configure the Binding, Things, Items by PaperUI or files? As I told in the post before, my .item-file seems to be useless - is there any configuration to do, to tell Openhab to read the .item-file?
bit more hopefull :slight_smile:
Klaus

You need to understand some basics first.
Older (1.x) Binding can not be configured through PaperUI, just beeing installed.
So you won‘t see anything in your inbox or control as these Bindings don‘t have Things.
Please read the according Binding doku carefully, enter your config into conf/services/„binding“.cfg and create the things you need in a .items file

Hi Hans-Jörg,
that´s exactly what I did…
After installing the binding with PaperUI appeared a /etc/openhab2/services/fritzboxtr064.cfg - I removed the # from the url (am I able to use https with the FritzBox certificate), refresh interval, username and password and filled in the right values. Then I added the /etc/openhab2/items/fritz_tr64.item (must I rename it - is there any default name?).
If I try to print out the FB-Name in my Sitemap there is no value.
I now tried the http-connection (instead of https) an see more lines about the binding in the openhab.log:

2018-03-09 20:03:55.825 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Read timed out
2018-03-09 20:03:55.833 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!
2018-03-09 20:03:55.838 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services
2018-03-09 20:04:00.857 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Failed to receive valid response from httpGet: Read timed out
2018-03-09 20:04:00.863 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Releasing connection to FritzBox because of error!
2018-03-09 20:04:00.869 [ERROR] [ing.fritzboxtr064.internal.Tr064Comm] - Could not read xml response services
2018-03-09 20:04:00.876 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WLANConfiguration-com:serviceId:WLANConfiguration2
2018-03-09 20:04:00.888 [WARN ] [ing.fritzboxtr064.internal.Tr064Comm] - No tr064 service found for service id urn:WLANConfiguration-com:serviceId:WLANConfiguration3
2018-03-09 20:04:00.936 [INFO ] [b.core.service.AbstractActiveService] - FritzboxTr064 Refresh Service has been started
2018-03-09 20:04:17.313 [INFO ] [b.core.service.AbstractActiveService] - FritzboxTr064 Refresh Service has been shut down

seems that I have to dig a little deeper…
Possibly it doesn´t work with the 6490 cable.
Thanks for your advice - sometimes I sit in front of what I configured like a rabbit in front of a snake…:wink:

I don‘t know how your provider might have limited your box, that could be an issue.
What I see is that your items file is not correct. The ening is .items (with an s)
Please provide your configs so we can check if there are any other issues.

your my hero…:wink:
what difference such a tiny little “s” makes!
Now it works as expected.
Thanks a lot!
Klaus

Hello Marcel

i got the same error with the same Fritzbox. Did you resolve your problem?

Thanks

Running a 6590 cable I started with the Item Configuration example as stated in the docs und the log was immediately awash with warnings about the SoapValueParser.

After skipping all items related to “DSL statistics” (as mentioned by @ktams Dec '17) AND the “Call deflection item” (last line) all warnings are gone and the binding is working fine for me.

Not an elegant solution but kind of workaraound… :roll_eyes:

Hi,

I just wonder if the Binding supports two boxes in one IP network (6490 mesh master and 7490 as mesh client). I received the following error after adding the mesh client to my setup which I haven’t received before. UPnP is activated on both boxes.

Frank

2018-12-03 21:31:58.504 [WARN ] [itzboxtr064.internal.SoapValueParser] - Fault received from FritzBox for item wifiGuestSwitch in SOAP response <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>504</errorCode>
<errorDescription>Unknown Error Code</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
==> /var/log/openhab2/events.log <==

Hello,

i got the same error with the same Fritzbox 6490. Did anyone resolve this problem?

2018-12-29 16:39:45.500 [WARN ] [itzboxtr064.internal.SoapValueParser] - Fault received from FritzBox for item dslEnable in SOAP response <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:dslforum-org:control-1-0">
<errorCode>401</errorCode>
<errorDescription>Invalid Action</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

Daniel

@Nognog did you disable the DSL related items as described above? For me this solved all Invalid Action errors. You may need to go by try-and-error to find out which item is causing the error.

If i disable the “DSL” related Items the errors gone, but i want to use ist. I want to use and display max up/down Rate. There is no solution for it?

1 Like

Hello,

I am using Fritzbox 6490 cable modem.
It would like to read out the max upstream/downstrem speed of the internet connection.

This following soloution does not work for cable modems:

Number fboxDslUpstreamCurrRate “DSL Upstream Current [%s mbit/s]” {fritzboxtr064=“dslUpstreamCurrRate”}
Number fboxDslDownstreamCurrRate “DSL Downstream Current [%s mbit/s]” {fritzboxtr064=“dslDownstreamCurrRate”}
Number fboxDslUpstreamMaxRate “DSL Upstream Max [%s mbit/s]” {fritzboxtr064=“dslUpstreamMaxRate”}
Number fboxDslDownstreamMaxRate “DSL Downstream Max [%s mbit/s]” {fritzboxtr064=“dslDownstreamMaxRate”

Do we have to change the FritzBox TR-064 Binding?

BR
Bernd

1 Like

Hi there,

I use the Fritzbox 6590 cable modem.
It also wants to read the maximum upstream / downstream speed of the internet connection.
The data is required for a Grafana dashboard.

Does anyone know a solution?

greeting
Jürgen