I am having the amazon sign in problem. I am using Amazon Echo Control Binding 2.5.6. I would like to update to 2.5.7 but I do not know where to find the related jar file. Could any one give me a link to it?
Thanks, I have been able to update to 2.5.7 but I keep having the amazon sign in problem. Basically (with 2.5.6 or 2.5.7) I could not complete the openhab:8080/amazonechocontrol task as Amazon Alexa keeps asking me to sign-in.
Hi! I don’t know if here is the right place for my problem, but since Version 2.5.7 I can’t use PaperUI and HABPanel. After a long research, I found out, that the problem is since Version 2.5.7. if I do a downgrade to the latest 2.5.6 Snapshot everything works fine.
The Problem is, that in PaperUI I get an ERROR 500 - Internal Server Error when I click on the control Button, or on the Item list. In the REST UI I can’t get the item list, too. And HABPanel, brings up an error, that there is no connection to habpanel. If I downgrade or even uninstall the amazonechocontroll add-on, everything works fine.
In the logs there is nothing to find and it took me weeks to find out, that the binding is the problem. I am using the docker Version, and so I have a good test environment to play around. My production openhab is still on openhab Version 2.5.6. My Test Stage is on the lates 2.5.8 docker image.
Hope someone could give me some hints, how I can solve that problem. What I did so far:
uninstalled the binding
cache clearing
Update and downgrade to snapshot versions 2.5.6 - 2.5.9
check the log files
restart the container
tried other openhab versions
uninstallation via bundle: command
up and down grade via bundle: command
delete all things and items
delete the amazon account thing
logged out the amazon account
So perhaps I missed something and someone could help me out with that problem.
I have the same problem. Every time I call alexa for some action which is not used for openhab (e.g. playing a radio station) I get a warning in the log:
2020-09-16 12:57:22.764 [WARN ] [trol.internal.handler.AccountHandler] - handling of websockets fails
org.openhab.binding.amazonechocontrol.internal.HttpException: GET url 'https://alexa.amazon.de/api/activities?startTime=1600253842371&size=10&offset=1' failed: Bad Request
This is a Parsing json failed error.
It seems that amazon API return now a version with a “x:y” format (“4:880679411” in my case), and the addon cannot parse ton number.
Am i alone ?
Thanks
No, you are not alone - same here since today:
[mazonechocontrol.internal.Connection] - Parsing json failed
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string:
Some of my rules don’t work anymore since today. E.g. some calls of amazon playlists or an information about values:
[rthome.model.script.actions.BusEvent] - Cannot convert ‘here is my text (41) degrees celsius (43) percent humidity’ to a command type which item ‘Echo_room1_TTS_Volume’ accepts: [PercentType, OnOffType, IncreaseDecreaseType, RefreshType].
Seems amazon is changing something in the background, right?
Maybe there is something wrong with your thing/item/rule. Maybe in your rule you try so set the volueme before speaking and used the wrong variable. The log never lies!
Well - it was working before since about a year, and after a restart it also works now again. No clue why but I haven’t changed the .rules file. Anyway, I still have other warnings linked to the amazon binding such as:
[WARN ] [mazonechocontrol.internal.Connection] - Illegal json: {“playlists”:{“10”:[{“entryList”:null,“playlistId”… => with all my playlists on amazon music
or
[WARN ] [mazonechocontrol.internal.Connection] - Parsing json failed
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string:
This error seems to be coming when the binding tries to access the playlists. Somehow one of them has a strange version number. In my case it’s “My favorites” that has version “2:923521”, which can’t be parsed as a number. Every other playlist has a valid number for the version.
OK, that can be the Problem. My “My Favorites” looks like yours. "title":"Meine Favoriten","trackCount":0,"version":"1:870161590"
and I get the following message in the Log under the json: Parsing json failed com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "1:870161590"
But this Playlist can’t be removed, so that the Problem can’t be resolved.