-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tr064] Initial contribution #8523
Conversation
Travis tests have failedHey @J-N-K, |
* @return the SOAPMessage answer from the remote host | ||
* @throws Tr064CommunicationException if an error occurs during the request | ||
*/ | ||
public synchronized SOAPMessage doSOAPRequest(SCPDServiceType service, String soapAction, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this synchronized?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC there was a problem when several requests are executed at the same time and return 401. It was not poissble to get the re-auth working in that case.
...enhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPValueConverter.java
Outdated
Show resolved
Hide resolved
...enhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPValueConverter.java
Outdated
Show resolved
Hide resolved
...enhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPValueConverter.java
Show resolved
Hide resolved
...rg.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPConnector.java
Outdated
Show resolved
Hide resolved
...rg.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPConnector.java
Outdated
Show resolved
Hide resolved
...rg.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPConnector.java
Show resolved
Hide resolved
...rg.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPConnector.java
Outdated
Show resolved
Hide resolved
...openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/Tr064RootHandler.java
Show resolved
Hide resolved
I am not sure if this is the right place to ask. Will the binding allow connection to more than one fritzbox? My use case would be presence detection on the fritzbox in my local network and on a VPN connected remote fritzbox. |
@lionhe1966 yes |
...ab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/Tr064DiscoveryService.java
Outdated
Show resolved
Hide resolved
Interesting. The build does not fail locally. And the error is wrong anyway, returning |
You'd see this error if you are using a newer version of Eclipse or if you rebase on the current main branch. |
@wborn It‘s still wrong. Obviously the compiler update breaks valid code. It‘s very hard to create a work around. Maybe ist improves when we have external null annotations in place. |
At least you only need to make one workaround instead of two because of the more similar compiler versions. ;-) |
...nhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/Tr064HandlerFactory.java
Outdated
Show resolved
Hide resolved
....openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/Tr064SubHandler.java
Outdated
Show resolved
Hide resolved
...openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/Tr064RootHandler.java
Show resolved
Hide resolved
...rg.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPConnector.java
Outdated
Show resolved
Hide resolved
I changed from version 1 binding to the test version of the fritzboxtr064 binding. I managed to set it up I receive valid values for example from the WAN-sub-device. I set it up via paper ui and filled in proper values for the root device for hostname, user, password etc. Also for tam index and the number of days for incoming and outgoing calls. Expected Behavior Current Behavior Possible Solution |
@jgantenberg I already responded in the community forum thread. Please set the binding to TRACE logging and show the log. |
|
@jgantenberg This happens after you configured a different hostname than |
@cpmeister I think I addressed most of your comments and commented on the remaining issues. |
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small final comments from me - rest is fine and imho good for being merged.
...enhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/SOAPValueConverter.java
Outdated
Show resolved
Hide resolved
...nhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/Tr064HandlerFactory.java
Outdated
Show resolved
Hide resolved
...rg.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/util/SCPDUtil.java
Outdated
Show resolved
Hide resolved
...es/org.openhab.binding.tr064/src/main/java/org/openhab/binding/tr064/internal/util/Util.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Jenkins fails on the tado-library. I wonder what is wrong there. |
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
yes, I have configured another hostname for my fritzbox, that is configured properly in DNS. I can fill in IP or hostname, the message that fritz.box cannot be resolved remained the same. |
@jgantenberg That must be due to the old version you are using (I'm not sure if that was hard-coded in an earlier version). I checked that it works in the current version if I assign an IP address instead of a host-name. Please try again, when this has been merged (I guess that will happen in the next days). |
I have another question: is there also a ringing indicator channel as it was in the v1 binding? It was nice to have it to evaluate in rules, e.g. lowering volume of music or tv. |
@J-N-K Thanks for this great implementation. I am playing with the Phonebook Profile combined with the avmfritz Call Monitor. Do you already have an working example? When adding the Profile via UI I am not able to see the configuration for it: There is an Internal 500 with the following error message:
I saw you implemented a |
I found basic solution for it in #9054. |
* Initial contribution Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* Initial contribution Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This provides a replacement for the OH1 "fritzboxtr064" binding.
Replaces #6678
Signed-off-by: Jan N. Klug jan.n.klug@rub.de