Amazon Echo SmartJ Binding issue with Account Login

Hi,

I am having a problem with getting the Amazon Echo Control binding I installed it via the Webinterface:

(This is the latest available version right? Or is there something else/newer to find somewhere?)

But when trying to access the url: myopenhabinstallation:8080/amazonechocontrol

Then I get this:

What could have gone wrong? What should I try next to make it work?.

Any recommendations @J-N-K ? Or anyone else?

For me it works fine. Is there anything in the logs? Did you try clearing cache or another browser?

I updated to OH 4.2.1 (latest) and now I have also problems with amazon addon
COMMUNICATION_ERROR
GET url ā€˜https://alexa.amazon.fr/api/phoenix’ failed: Too Many Requests

Log
] [mazonechocontrol.internal.Connection] - getSmartHomeDevices fails: GET url ā€˜https://alexa.amazon.fr/api/phoenix’ failed: Too Many Requests
2024-09-11 09:22:47.585 [WARN ] [mazonechocontrol.internal.Connection] - getSmartHomeDevices fails: GET url ā€˜https://alexa.amazon.fr/api/phoenix’ failed: Too Many Requests
2024-09-11 10:05:39.324 [INFO ] [.service.internal.HttpServiceEnabled] - Unregistering servlet by alias ā€œ/amazonechocontrol/3f2c0fb42dā€
2024-09-11 10:05:39.325 [INFO ] [jetty.internal.JettyServerController] - Receiving Batch{"Unregistration of servlets: [ServletModel{id=ServletModel-42,name=ā€˜/amazonechocontrol/3f2c0fb42d’,alias=ā€˜/amazonechocontrol/3f2c0fb42d’,urlPatterns=[/amazonechocontrol/3f2c0fb42d/],servlet=org.openhab.binding.amazonechocontrol.internal.AccountServlet@62335b0a,contexts=[{HS,OCM-39,default,/}]}]", size=1}
2024-09-11 10:05:39.326 [INFO ] [ce.jetty.internal.JettyServerWrapper] - Removing servlet ServletModel{id=ServletModel-42,name=ā€˜/amazonechocontrol/3f2c0fb42d’,alias=ā€˜/amazonechocontrol/3f2c0fb42d’,urlPatterns=[/amazonechocontrol/3f2c0fb42d/
],servlet=org.openhab.binding.amazonechocontrol.internal.AccountServlet@62335b0a,contexts=[{HS,OCM-39,default,/}]}
2024-09-11 10:05:39.331 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1006. Reason: Disconnected

Maybe this is the same issue here:

Which version of the binding?

4.2.1?
Where Can i see binding version ?

karaf console (openhab-cli console):
bundle:list -r -s|grep amazon

Have you done disconnecting and reconnecting the bridge under
http://your_server:8080/amazonechocontrol/ ?
It was changed to https://eu-api-alexa.amazon.com, so maybe the .fr server is not reliable anymore.
I did a clean-cache and reboot afterwards, then everything worked again.

i don’t have openhab-cli in Docker… or don’t know how to acces it…sorry…

image

Changing country from FR to DE did not help…
Then changed to .com and now the binding is ONLINE
But my detected Things were still OFFline
Changing back to FR, the binding is Online and my devices are found - hope it is foreever…
Now ā€œonlyā€ SmartHomeDevices are not recognized

Hi Jd,
With SmartHomeDevices you mean a light that is connected to alexa and you want to turn on and of from openhab thru alexa binding?
Here same problem i try to manually create things… but there are no channels.
I also noticed that if I unplug an echo. for the binding still remain online.

No,
SmartHomeDevices are devices liked in Alexa using other skills like Broadlink or SmartLife
compared to ā€œechoā€ devices

Cleaning the Cache did the trick!

Ok my same problem i have Bticino Living NOW that is connected to Alexa with Bticino skill.
And are not working.
Try to logout and reconnect. And clear cache.
But still not working…

I have the same problem.
I cleared the cache.
Connected to https://eu-api-alexa.amazon.com, but it doesn’t work.
The bridge is online but no devices are found.

OH 4.2.1
SmartHome/J Amazon Echo Control Binding version 4.2.0


I don’t have the button change…

For me works…
But doesn’t works smarhomedevices…
And if one echo is offline the think is reported online (before was reported offline the thing too)

But do you have ā€œlogout and re-registerā€ at the very top right? That’s the one you need.

I did several times works but no smarthomedevices.

There is a way to understand if there is an update of the plugin?
The only way i found is remove plugin reinstall and bundle:list

Since I had the issue since a few days now, I tried to ā€œlogout and re-registerā€ a few times. And it worked - until today! :wink:
The following ERROR shows up, after trying to login and re-register the App:
grafik

A few words:

  • I’m in germany and after ā€œlogouot and re-registerā€ my openHAB got connected to ā€œeu-api-alexa.amazon.comā€ (before that it was ā€œalexa.amazon.deā€ AFAIR).
  • I’m using the SmartJ version on OH4.2.1-release (openHABian)
    347 x Active x 80 x 4.2.0 x org.smarthomej.binding.amazonechocontrol x [osgi.identity; type="osgi.bundle"; version:Version="4.2.0"; osgi.identity="org.smarthomej.binding.amazonechocontrol"]

I get these every few minutes:

2024-09-26 08:08:26.301 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:account:binder' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): https://eu-api-alexa.amazon.com/api/phoenix failed with code 429: Too Many Requests
2024-09-26 08:08:26.302 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:smartHomeDevice:binder:KitchenSkylight' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.303 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:echoEingang' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.304 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:OfficeSonos' changed from OFFLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.305 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoKitchen' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.306 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoBasement' changed from OFFLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.308 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoDave' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.309 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:smartHomeDevice:binder:OfficePrinter' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.311 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:echoArbeiten' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.313 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:echoSchlafzimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.314 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:smartHomeDevice:binder:KitchenCoffee' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:08:26.316 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoBath' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
...
2024-09-26 08:13:32.629 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:account:binder' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): https://eu-api-alexa.amazon.com/api/phoenix failed with code 429: Too Many Requests
2024-09-26 08:13:32.630 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:smartHomeDevice:binder:KitchenSkylight' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.631 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:echoEingang' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.632 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:smartHomeDevice:binder:OfficePrinter' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.634 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoBasement' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.635 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:OfficeSonos' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.637 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:smartHomeDevice:binder:KitchenCoffee' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.637 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:echoArbeiten' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.639 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoDave' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.640 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoKitchen' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.641 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:echoSchlafzimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2024-09-26 08:13:32.641 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'amazonechocontrol:echo:binder:EchoBath' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

Try

That’s a different error (Invalid redirect) and did not work with me (Login failed). I’m already signed out from the App and while trying to re-register Alexa, the login failed.

openhab> bundle:list -r -s |grep amazon
348 x Active x  80 x 4.2.0                 x org.smarthomej.binding.amazonechocontrol                    x [osgi.identity; osgi.identity="org.smarthomej.binding.amazonechocontrol"; type="osgi.bundle"
openhab> amazonechocontrol listAccounts
Thing-Id: binder ('amazon:  Konto')
openhab> amazonechocontrol resetAccount binder
Resetting account 'binder'
openhab>