gitbock / fritzboxtr064

Binding for openHAB for communicating with AVM FritzBox
16 stars 12 forks source link

MAC not reported as online #1

Closed gitbock closed 8 years ago

gitbock commented 9 years ago

Issue:

Log file

2015-10-03 20:12:52.229 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - FritzboxTr064 executing...
2015-10-03 20:12:53.046 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - Parsing fbox response for maconline
2015-10-03 20:12:53.050 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - parsed as 1
2015-10-03 20:12:53.075 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - Parsing fbox response for maconline
2015-10-03 20:12:53.080 [DEBUG] [o.o.b.f.i.FritzboxTr064Binding] - MAC not known to FritzBox!

References pull request openhab

versions affected

Environment

gitbock commented 9 years ago

This is a known bug. Sometimes the fritzbox is not reporting the proper state. You may try one of the following resolutions:

Check

Check if the problem is because of the fritzbox bug or the binding itself. Download the perl script, adapt the header part in the script so that it matches for MAC and fritzbox ip. Execute the script and watch the output. If the state is reported properly, it's a binding problem -> rise a new issue including debug logs and your configuration. If the state is reported incorrect, you may try the following options.

Fritzbox DHCP reset

Fritzbox MAC reservation

thaake commented 9 years ago

I tried all above with no effect. Do I have to restart openhab to have changes in logbook.xml take effect? That I didn't do today because I don't wanted to risk an unstable openhab before leaving home ;-)

gitbock commented 9 years ago

@thaake No, I think you do not need to restart. It only should take a while until the settings of logback.xml get active. At the moment I do not have another idea, sorry.

If you are using a Linux based system, you may also try my perl Skript, which basically does the same, but not using openHAB. Just to get another idea...

thaake commented 9 years ago

@gitbock I'm definitely running v0.2 and have the correct debug entries in logback.xml, but I don't get any SOAP entry in openhab.log. Behavior of binding is still weird. Rest of openhab is fine.

thaake commented 9 years ago

Seems to need a restart to take effect for the entries in logback.xml.

I just gave it a try, but with your debug entry openhab doesn't start correct. It didn't write an openhab.log anyway. It deleted the debug entries and restarted. all is fine again. Something seems to be very wrong with debug enabled in the v0.2.

thaake commented 8 years ago

Anything new?

gitbock commented 8 years ago

Don't have an idea at the moment. Did you try the perl script as I suggested in this post?

thaake commented 8 years ago

@gitbock

I tried the perl script, but I didn't manage to get it running. My system is a synology and I got a lot of trouble with the install of perl and the required packages. I gave up in the end. Sorry.

gitbock commented 8 years ago

@thaake If you are still interested: Some people reported that the binding is working as soon as they upgraded to java 1.8.0. You may have a look at #3 or #4

thaake commented 8 years ago

@gitbock

Thanks for all your work. I followed all those other "threads" and tried it again: It works for me, too.

I did two things, unfortunately at once, FB Laborversion (after 6.30 didn't do the trick) and Java 8. After it runs like a charm. I'm testing all the details, but did not come up with any problem till now.

I think Java 8 is the game changer here. It's a bit tricky the get Java 8 running on Sinology, because of the Java manager, it only supports up to J7. But it you rename the J8 file to a 7, the manager does not get it and installs J8. Thats it.

I'll keep you posted about my testing. Till now, all thumbs up!!! Thanks again.

gitbock commented 8 years ago

@thaake Thanks for your valuable feedback, which I appreciate much! You are welcome :)

hjw2015 commented 8 years ago

@gitbock

Fiddling around with this MAC online test the last two days - here are my findings:

Long story short: devices are gone after renaming them in the Web UI in my scenario

Context:

gitbock commented 8 years ago

@hjw2015 Thanks for the tests. I was not aware that such a reset button can appear :)

hjw2015 commented 8 years ago

In my case it shows up only if I change the name of a device. Alternatively you can delete devices when you restrict access to only known MAC addresses in the WLAN view.

gitbock notifications@github.com schrieb am Sa., 2. Jan. 2016 13:51:

@hjw2015 https://github.com/hjw2015 Thanks for the tests. I was not aware that such a reset button can appear :)

— Reply to this email directly or view it on GitHub https://github.com/gitbock/fritzboxtr064/issues/1#issuecomment-168388698 .

GeneralLuzi commented 8 years ago

Hi,

Summary: It depends on the name of device given at the fritz.box UI. If it is on the last position of the list, i won't work, where as at the beginning to the second last position is is fine.

Long version: this issue is still not closed for me. I have the latest SDK / JRE on me raspberry 2 and the presence detection does not work for 1 device.

I tested this issue and my observation is the following: If the device is named in that way, that it is located on the last position of the networklist then the present detection won't work.

See the following screenshot: error_fritzbox The device starting with ZZ is not available.

Can someone check if I'm right please? If so, then someone should report this to AVM.

BR, GeneralLuzi

hjw2015 commented 8 years ago

Problem seems to be fixed with latest update of FritzBox to 6.51 for me. Worked flawless the last week.

BR, HJW

GeneralLuzi notifications@github.com schrieb am Mo., 16. Mai 2016, 16:45:

Hi,

Summary: It depends on the name of device given at the fritz.box UI. If it is on the last position of the list, i won't work, where as at the beginning to the second last position is is fine.

Long version: this issue is still not closed for me. I have the latest SDK / JRE on me raspberry 2 and the presence detection does not work for 1 device.

I tested this issue and my observation is the following: If the device is named in that way, that it is located on the last position of the networklist then the present detection won't work.

See the following screenshot: [image: error_fritzbox] https://cloud.githubusercontent.com/assets/10353223/15292814/41beea14-1b85-11e6-91bb-c0f065e507e1.jpg The device starting with ZZ is not available.

Can someone check if I'm right please? If so, then someone should report this to AVM.

BR, GeneralLuzi

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/gitbock/fritzboxtr064/issues/1#issuecomment-219443666

GeneralLuzi commented 8 years ago

PS.: I'm using the FRITZ!OS 06.06. Perhaps this issue does not appear in newer versions...

GeneralLuzi commented 8 years ago

7 minutes to late ;) thanks for the reply

Then this should be the workaround for anyone who is using an older fritzbox...

this thread can be closed now...