FrtizBox TR064 Binding not working

I am trying to set up the TR064 binding on my 1.8.2 Openhab installation. Everything else works - including other bindings (MQTT etc).

I have installed the .jar file in the addon folder - and added the configurations in the openhab.cfg file - as well as added items, rules and sitemap entries - according to instructions.

But I dont get any data - and it seems that the binding is simply not working.

In my logfile I get:
2016-05-23 06:34:35.834 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - FritzBox TR064 Binding activated!
2016-05-23 06:34:35.837 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - Custom refresh interval set to 60000
2016-05-23 06:34:35.838 [WARN ] [o.o.b.f.i.FritzboxTr064Binding] - Fritzbox User was not provided in config. Using default username.
2016-05-23 06:34:37.258 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - Releasing connection
2016-05-23 06:34:38.226 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - Found 2,4 Ghz, 5Ghz and Guest Wifi
2016-05-23 06:34:38.236 [INFO ] [.service.AbstractActiveService] - FritzboxTr064 Refresh Service has been started
2016-05-23 06:34:38.241 [TRACE] [o.o.b.f.i.FritzboxTr064Binding] - FritzboxTr064 executing…

so it seems that the binding as such is active - but I dont get any data in Openhab - and just lines like this for all the FritzboxTr064 elements:

2016-05-23 06:36:38.294 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item fboxName for widget org.openhab.model.sitemap.Text

Any suggestions ?

My Fritzbox is an 7390 with the newest 6.51 firmware. I have done the #965 code on the Fritzbox as suggested as well…

Hey Martin,

you’re not alone. See my thread here: https://community.openhab.org/t/fritzbox-tr64-binding-call-monitor-not-working/10664/7

I also opened a ticket on gitbock’s github repo for the FritzboxTR064 binding here: https://github.com/gitbock/fritzboxtr064/issues/18

Ralph

Hi Ralph

What I find so strange is, that I am not getting any data at all. I tried with a python script (https://bitbucket.org/kbr/fritzconnection) to readout TR064 data and that works - so the problem does not lie in my setup, but rather in the Openhab binding.

Has anyone gotten the OpenHab TR064 binding to work on newer version Fritz’es ? - or on FritzBoxes at all ?

Martin

For me the readout of TR064 data works regarding the maconline feature. This is on a 7490 with FritzOS 6.51. Do you see a connection on your openhab box to your fritz box like this:

tcp6 0 0 192.168.254.12:39391 192.168.254.1:49443 ESTABLISHED

I dont know ?? - where would I look for it ? What would be the Linux command to check that ?

Ah - sorry, I didn’t know the NETSTAT command :wink: Learning all the time :wink:

YES - I do have the connection similar to what you commented:
tcp6 0 0 GARAGE.fritz.box:57133 fritz.box:49000 ESTABLISHED

The “GARAGE” is the name of my RASPI2 which is located in - my Garage :wink:

Now what ? It seems that connections exist - and that I can see TR064 data on my FritzBox through other clients. Why wont it work in the OpenHab binding ?

You could try inserting

<logger name="org.openhab.binding.fritzboxtr064" level="DEBUG" />

into your logback.xml and see if that debug logging brings out some more details.

No, I already had it on TRACE and changing to DEBUG doesnt provide further insight.
I noticed that the NETSTAT occacionally gives
tcp6 1 0 GARAGE.fritz.box:40544 fritz.box:49000 CLOSE_WAIT

is that normal ?

Any other suggestions to why the Binding doesnt bring any data ?

I did an update to 1.8.3 - and for some reason it works now… Strange :dizzy_face:

Hello, is this fritzbox Binding ( 7390) still working with the FritzOS 6.83 ?
I just need the call monitor.