-
-
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
[tellstick] Adopt new API url #16220
Conversation
Signed-off-by: Andrew Fiddian-Green <[email protected]>
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.
It looks good to me except for this comment:
...k/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveDeviceController.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
The jar file for testing is here.. |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/telldus-live-tellstick-binding-need-new-api/151646/4 |
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! LGTM now 👍
How about?
|
Maybe you can create a PR for that @dabj123? |
The polling rate of the binding is 10 seconds (so 6 calls per minute) .. so I presume that is Ok.
I agree with @wborn :) |
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.
LGTM
Can this be cherry picked to 4.1.x?
Was this change tested by someone and reported as fixing the issues? |
I don't think so. openhab/openhab-core#3922 was introduced only in 4.2. It would have been better with separate PR's for the URL bugfix and the USB suggestion enhancement. @andrewfg - will you be able to split the PR on short notice in order to possible get the URL fix into 4.1.1? |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
I actually bought another base station using the local API as a work around, rather than Telldus live. If @dabj123 still uses live, it's probably easier to test for him. |
I checked https://telldus.com/driftinformation/ which is in Swedish (which is readable for me as Danish 🙂):
The first bullet "Använd INTE api.telldus.com. Din IP kommer automatiskt att blockeras." means: "do NOT use api.telldus.com. Your IP will automatically be blocked." So we can safely merge as it's pretty clear the old endpoint cannot be used anymore. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@jlaur yes I could read it too .. via Google Translate ;) |
I still use Telldus live bridge, but it seams to not work for me with new jar "org.openhab.binding.tellstick-4.2.0-SNAPSHOT.jar" Request [http://pa-api.telldus.com/xml/devices/list?supportedMethods=19] failed: ExecutionException HTTP request returned status code 401 |
@dabj123 an HTTP 401 error means 'authentication failed' so check your login credentials please. |
I know that, but I have double check every thing and generate new keys, but still recieve 401 or 429. |
Could you open a new issue to investigate that? |
@dabj123 these are TWO different issues..
I am guessing that if the HTTP 401 error is fixed, then there will not be any retries, so the HTTP 429 error will probably go away. |
Request [http://pa-api.telldus.com/xml/devices/list?supportedMethods=19] failed: ExecutionException HTTP request returned status code 401 OAuth Verification Failed: Can't verify request, missing oauth_consumer_key or oauth_token |
@dabj123 you are the TellStick user (apparently the only one) so only you know how to renew your user key or token. I cannot help you since I do not know the binding or the application. |
I have renew new keys etc. Maybe TellStick have new logic in the new api to handle OAuth Verification... |
Signed-off-by: Andrew Fiddian-Green <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Resolves #15987
Note: not (yet) tested.
Signed-off-by: Andrew Fiddian-Green [email protected]