Preview and Beta: Amazon Echo Control

After the new *.jar from @Trinitus01 i got sign in (after a few trys) than password reset and cptcha and OTB after that i got following:

HTTP ERROR 500
Problem accessing /amazonechocontrol/c657026b/ap/signin/136-4139178-6507409. Reason:

    Server Error
Caused by:
javax.servlet.ServletException: java.net.UnknownHostException: www.amazon.com
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:494)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException: www.amazon.com
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:607)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:264)
	at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:581)
	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.handleProxyRequest(AccountServlet.java:631)
	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.doVerb(AccountServlet.java:228)
	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.doPost(AccountServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
	... 15 more
Caused by:
java.net.UnknownHostException: www.amazon.com
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:607)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:264)
	at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:581)
	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.handleProxyRequest(AccountServlet.java:631)
	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.doVerb(AccountServlet.java:228)
	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.doPost(AccountServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:494)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918)
	at java.lang.Thread.run(Thread.java:748)
Powered by Jetty:// 9.4.20.v20190813

and OH2 Log:

2020-07-16 11:49:20.989 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /amazonechocontrol/c657026b/ap/forgotpassword

org.openhab.binding.amazonechocontrol.internal.HttpException: POST url ‘Amazon.com’ failed: Not Found

at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:648) ~[?:?]

at org.openhab.binding.amazonechocontrol.internal.AccountServlet.handleProxyRequest(AccountServlet.java:631) ~[?:?]

at org.openhab.binding.amazonechocontrol.internal.AccountServlet.doVerb(AccountServlet.java:228) ~[?:?]

at org.openhab.binding.amazonechocontrol.internal.AccountServlet.doPost(AccountServlet.java:136) ~[?:?]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) ~[bundleFile:3.1.0]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[bundleFile:3.1.0]

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) ~[bundleFile:9.4.20.v20190813]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) ~[bundleFile:9.4.20.v20190813]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.20.v20190813]

at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.Server.handle(Server.java:494) ~[bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]

at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]

Randomly, my AmazonEchoControl binding "SmartHomwDevices have stopped working and I am receiving the errors below. It does not matter which version of the binding I use.

20│2020-07-16 04:29:06.137 [ERROR] [trol.internal.handler.AccountHandler] - check login fails with unexpected error                                                                                                   │
20│java.lang.NullPointerException: null                                                                                                                                                                               │
20│        at java.net.URLEncoder.encode(URLEncoder.java:204) ~[?:1.8.0_252]                                                                                                                                          │
20│        at org.openhab.binding.amazonechocontrol.internal.Connection.exchangeToken(Connection.java:783) ~[?:?]                                                                                                     │
20│        at org.openhab.binding.amazonechocontrol.internal.Connection.checkRenewSession(Connection.java:835) ~[?:?]                                                                                                 │
20│        at org.openhab.binding.amazonechocontrol.internal.Connection.tryRestoreSessionData(Connection.java:424) ~[?:?]                                                                                             │
20│        at org.openhab.binding.amazonechocontrol.internal.Connection.tryRestoreLogin(Connection.java:346) ~[?:?]                                                                                                   │
20│        at org.openhab.binding.amazonechocontrol.internal.handler.AccountHandler.checkLogin(AccountHandler.java:385) ~[?:?]                                                                                        │
20│        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_252]                                                                                                                   │
20│        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_252]                                                                                                                          │
20│        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_252]                                                                     │
20│        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_252]                                                                            │
20│        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]                                                                                                           │
20│        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]                                                                                                           │
20│        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]                                                                                                                                                     │
00│2020-07-16 04:29:42.842 [INFO ] [mazonechocontrol.internal.Connection] - Smart home device command failed.                                                                                                         │58
  │2020-07-16 04:29:42.843 [INFO ] [mazonechocontrol.internal.Connection] - Request:                                                                                                                                  │
20│2020-07-16 04:29:42.843 [INFO ] [mazonechocontrol.internal.Connection] - {"controlRequests":[{"entityId":"e60e8fda-2a0e-46fd-9713-1e904556149a","entityType":"APPLIANCE","parameters":{"action":"turnOn"}}]}       │
20│2020-07-16 04:29:42.844 [INFO ] [mazonechocontrol.internal.Connection] - Answer:                                                                                                                                   │
20│2020-07-16 04:29:42.845 [INFO ] [mazonechocontrol.internal.Connection] - {"entity":{"entityId":"e60e8fda-2a0e-46fd-9713-1e904556149a","entityType":"APPLIANCE"},"code":"INVALID_DIRECTIVE","message":null,"data":nu│
20│ll}                                                                                                                                                                                                                │
20│2020-07-16 04:29:44.617 [INFO ] [mazonechocontrol.internal.Connection] - Smart home device command failed.                                                                                                         │
20│2020-07-16 04:29:44.618 [INFO ] [mazonechocontrol.internal.Connection] - Request:                                                                                                                                  │
20│2020-07-16 04:29:44.619 [INFO ] [mazonechocontrol.internal.Connection] - {"controlRequests":[{"entityId":"e60e8fda-2a0e-46fd-9713-1e904556149a","entityType":"APPLIANCE","parameters":{"action":"turnOff"}}]}      │
20│2020-07-16 04:29:44.620 [INFO ] [mazonechocontrol.internal.Connection] - Answer:                                                                                                                                   │
20│2020-07-16 04:29:44.620 [INFO ] [mazonechocontrol.internal.Connection] - {"entity":{"entityId":"e60e8fda-2a0e-46fd-9713-1e904556149a","entityType":"APPLIANCE"},"code":"INVALID_DIRECTIVE","message":null,"data":nu│
20│ll}                                                                                                                                                                                                                │
20│2020-07-16 04:29:51.492 [INFO ] [mazonechocontrol.internal.Connection] - Smart home device command failed.                                                                                                         │
20│2020-07-16 04:29:51.493 [INFO ] [mazonechocontrol.internal.Connection] - Request:                                                                                                                                  │
20│2020-07-16 04:29:51.493 [INFO ] [mazonechocontrol.internal.Connection] - {"controlRequests":[{"entityId":"e758d86e-40a1-4415-886c-397c71939635","entityType":"APPLIANCE","parameters":{"action":"turnOff"}}]}

And now also:

2020-07-16 04:41:23.432 [hingStatusInfoChangedEvent] - 'amazonechocontrol:smartHomeDevice:0654f2d8:Stairs_Light_Master' changed from OFFLINE: Can't find smarthomeBaseDevice! to OFFLINE: Can't find smarthomeBaseDevice
2020-07-16 04:41:34.893 [hingStatusInfoChangedEvent] - 'amazonechocontrol:smartHomeDevice:0654f2d8:Stairs_Light_Master' changed from OFFLINE: Can't find smarthomeBaseDevice to OFFLINE: Can't find smarthomeBaseDevice!
2020-07-16 04:41:36.649 [hingStatusInfoChangedEvent] - 'amazonechocontrol:smartHomeDevice:0654f2d8:Stairs_Light_Master' changed from OFFLINE: Can't find smarthomeBaseDevice! to OFFLINE: Can't find smarthomeBaseDevice
2020-07-16 04:41:45.569 [hingStatusInfoChangedEvent] - 'amazonechocontrol:smartHomeDevice:0654f2d8:Stairs_Light_Master' changed from OFFLINE: Can't find smarthomeBaseDevice to OFFLINE: Can't find smarthomeBaseDevice!

That worked for me. First time I could login after a week of outage.

I try to reduce the delay.

Do you send the tts to a group or multiple devices?
Do you send multiple tts with different sentences to different devices?
Did you take the time via log or did you count?
Because there could also a delay between the state update and the rule trigger.

I still don’t know your test case and you still didn’t provide a log.
So i am not able to see the problem and its nearly impossible to say whats the reason.
20 Seconds doesn’t seem that much compared to loosing a tts because amaz*n reject it.
Without a delay the tts is lost…

br

Hi,

can you please test the following jar file:

Link removed. New version to test will follow soon.

Please focus on the login, there should no issue anymore.
(Catcha and OTP is possible and ok)

Big thanks!

br

No luck from my side.
For both accounts still “Enter a valid email or mobile number”, after five tries I am brought back to password assistance, as if I would have used a wrong password (of course I did not), so my password seems not to be recognized.

No matter which device or browser I use.

I am just wondering…this Amazon account number…I can’t remember where I got it from or how it was generated. Can someone tell me from where I got it?

When I try to complete the forgotten password process the log shows this:

    2020-07-16 19:22:01.774 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /amazonechocontrol/21242853/FORWARD/ap/forgotpassword

    org.openhab.binding.amazonechocontrol.internal.HttpException: GET url 'https://www.amazon.com/ap/forgotpassword?arb=53288ada-d0ab-46b1-9af1-f7639a311438&claimToken=eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAifQ.c0ahuuiIS_DtcmiEO69XV0zXUlj5lduMBdvVC9UrApru7OFW65DDQM3KdNDkoUxAgCVxG3doUGGw6VLZ4qEtNYoWZw-nHlHeHnMkynwjN5hoF3IO-FNmQmhKLbBkMLGHuqkA3W55LQy8n3AZVGttfRc6d5CsjKUQ06Wx-tdJ4LA5llm8lMnoaJoIAKtaR7dnf0S6go_4X_w_h4z3jq6RfmzLMoSazZBWwSg4AcavEa8DTBJebOc8L9kdPt183mBgzTS7kFEybGfvL2o71qr9B75ehHsUFcBHVrX5uN7UJe7S3LxSIycPp1FHa3XP0_TSDbp5h6rAl56k__Chq3uL-g.b4uWf7jTWV8t2yaj.iGaRmplyI4e778z-HNseGgDaqOLUxImhR8MXzX0IU2fGshK2Y7dmenOUQUL2PM9j20mZ8K2D9SfgAjQiMQOtl2S-qU2ef-GS1VwqaDWEOmJlf9UFGJ2Bl5zoneBb2Mrch-LD4nw-VXV-zj0HH_pLm-29Lw-cgb0lzogfQZueM4Pbf7c14azuZNvul0Pnilk90yozlwqIf-C3wQ9GkRUQXIdAVisPJqe39pgBMyEFau6juHTy6DO9NzbmEb4NqCkGO-my9biN3AU9VJIvR5alvuDjVa9grKVHJ-sug43tTUpZ8U5b2dVitmJBKIK5rAgw0JWeunPTPqKxu4OqgMZDIczQqqPoBxuW_tIF12gVOZMPp56zAerctfLScvj5WhB3KFhWa82r32cFMHw2Ld4K7uCSrp-uJJ4NuIXYCviDFUsCWxOlX2_do34mtcC2PWhdV4NuAhwYdg7Chz6nBNltrWFFWnJPxWub1_6W2i4q4xGJ7xVPXiXVNBKG_DtVkUNrRyVwi87-9Mjb3ecvyDAMLbB5MSnVrdwlNeSrBamf685AdryFRoimPFkurXeRWR_E0AuGywmn8KOJ5_GIu8hph4XFUs8uPqyG-N7DROMdLFjyzyXIJoW1LpxBd9RaMwg0bNExKEgfC-lx2RzrMVzWvFm4SCqlHLJmnvQN_oXd5vNe9pjqozoh1uX-3wZss2NvsSJNHecB35D7KGRPD0t6xrYHVq7hI19MCjTS2Ch8cH8S9_znH24EIUXBKOp0_wXzbK2w5oFzg3sSXBryTnHHEEJKaZ8rvMeL6-axOJYGVYy6MB5oBoT7SfijgFuxzwm3kzeurcb0GUhf5qugn7lh8kK2Xs4_Hi7oabmx9tsSXFu3zVGYHgpS5GCyQj31Kv4lY1w5E5sm5Joaf6SE94LXIDFd-gcFBUjI8TfqL1cTBexckwyYQVEhv6nP5M6_y1s1gByCxFgOmJOHhitzsDqaQoVyBdfup4_ijNySoj0UPm2XkYXOGM1jghS0beaPa1ugL7wtNdfYirpgx6CT7LvKUXOyp5-NgDFXRLc3F3_m67vY7FpcaN-3F9VW2xIHckFBQHhb5uPnXoGN_Nd6E05aoFjx-It47zNZWmP-Y-0lK6XHupoXGBtLOezGewmxBfLNRc5vG4dtj7lsv5Jx3YuRjVgppLDU6wQF7SXd3sUGcUYZJVziWKBnJRzuBbASrMKkTkoInK7pctHyV32ud5jtWo7WKdG49FU4ltjJkJc4h8hvaieVJ4sHVOoEiPoGs_TRKmPIRwnXVrFsUVjI--6003WbT-5RwffLQBmidiZHzIi_OpbvbpBt-dXgW-JF8vC92pRtyyaGZrN4FxddIaAGg4qwKADW8nReoELsVxhfQSDl7W-uAcNJNkMUbrpOfm7etEpEXyArpu0Gs6qiXMFwkS5CCX392T1_7JUcxkm8UerztTL9i9o3MxD9w4g0Ae08vRa56eoBbT-jGIpE2vvWlCy9KlOF7zUhwtcEpiZnqtdajYJbVyTa2Q-BW7NSu_-_2WYSeqHHL3o_I-tIbJopJDLenVUAwc72fgnoINExNb0VkE2QEf4CA9lRvh32PwxlbGIDuhGfrEti8fVfTpxPys4YvHoi3Q.C3ydCAVId52sr0a_55N72A' failed: Not Found

    	at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:675) ~[?:?]

    	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.handleProxyRequest(AccountServlet.java:629) ~[?:?]

    	at org.openhab.binding.amazonechocontrol.internal.AccountServlet.doGet(AccountServlet.java:245) ~[?:?]

    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) ~[bundleFile:3.1.0]

    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[bundleFile:3.1.0]

    	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) ~[bundleFile:9.4.20.v20190813]

    	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[bundleFile:?]

    	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) ~[bundleFile:9.4.20.v20190813]

    	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[bundleFile:?]

    	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.20.v20190813]

    	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[bundleFile:?]

    	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.Server.handle(Server.java:494) ~[bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]

    	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]

    	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]

As i wrote in a previous post, you have to got to the amazon website and login. Because your account is in a bad state. Follow the steps and reset your pw. After it, go back to the Bindings login website and try again, it should work.

br

I changed my password already three times today on amazon.de and two times on amazon.com.
I can login without a problem on both websites, I am only sent an OTP (code to my mobile phone) every time I try to login.
I am getting out of ideas for new passwords.

This is strange. Are you sure the new jar is loaded?
Remove the jar, check the log, add the jar check the log again.

I removed the jar, uninstalled the binding via the console, copied the new jar to the folder and restarted openHAB, but I will check again.

This is what happens when I copy the jar to the folder again:

2020-07-16 19:38:58.787 [hingStatusInfoChangedEvent] - 'amazonechocontrol:wha:21242853:e61e30bb492a455697891d60db8067a9' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2020-07-16 19:38:58.792 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090L91174170WWJ' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2020-07-16 19:38:58.797 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:21242853:1' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2020-07-16 19:38:58.802 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090XG0794142M3J' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2020-07-16 19:38:58.811 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G000JN0674330DMN' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2020-07-16 19:38:58.813 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G0911B0593170050' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2020-07-16 19:38:58.926 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:21242853' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING

2020-07-16 19:38:58.990 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:21242853' changed from INITIALIZING to OFFLINE (CONFIGURATION_PENDING): Wait for login

2020-07-16 19:38:59.013 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:21242853:1' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2020-07-16 19:38:59.065 [hingStatusInfoChangedEvent] - 'amazonechocontrol:wha:21242853:e61e30bb492a455697891d60db8067a9' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2020-07-16 19:38:59.078 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:21242853:1' changed from INITIALIZING to UNKNOWN

2020-07-16 19:38:59.106 [hingStatusInfoChangedEvent] - 'amazonechocontrol:wha:21242853:e61e30bb492a455697891d60db8067a9' changed from INITIALIZING to UNKNOWN

2020-07-16 19:38:59.116 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090P308747213W3' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING

2020-07-16 19:38:59.121 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G000JN0674330DMN' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2020-07-16 19:38:59.128 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090XG0794142M3J' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2020-07-16 19:38:59.135 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090L91174170WWJ' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2020-07-16 19:38:59.160 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090P308747213W3' changed from INITIALIZING to UNKNOWN

2020-07-16 19:38:59.168 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G000JN0674330DMN' changed from INITIALIZING to UNKNOWN

2020-07-16 19:38:59.176 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090XG0794142M3J' changed from INITIALIZING to UNKNOWN

2020-07-16 19:38:59.183 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090L91174170WWJ' changed from INITIALIZING to UNKNOWN

2020-07-16 19:38:59.188 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G0911B0593170050' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2020-07-16 19:38:59.201 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G0911B0593170050' changed from INITIALIZING to UNKNOWN

2020-07-16 19:38:59.825 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:21242853' changed from OFFLINE (CONFIGURATION_PENDING): Wait for login to OFFLINE (COMMUNICATION_ERROR): POST url 'https://api.amazon.com/auth/token' failed: Bad Request

2020-07-16 19:38:59.831 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090L91174170WWJ' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

2020-07-16 19:38:59.834 [hingStatusInfoChangedEvent] - 'amazonechocontrol:wha:21242853:e61e30bb492a455697891d60db8067a9' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

2020-07-16 19:38:59.839 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090XG0794142M3J' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

2020-07-16 19:38:59.841 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:21242853:1' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

2020-07-16 19:38:59.844 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G000JN0674330DMN' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

2020-07-16 19:38:59.847 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echoshow:21242853:G0911B0593170050' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

2020-07-16 19:38:59.850 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:21242853:G090P308747213W3' changed from UNKNOWN to OFFLINE (BRIDGE_OFFLINE)

Is this ok or does it have to say anything like “…is loaded”?
It’s my first time working with a jar.

The active version is 2.5.7.202007161601

Check bundle:list | grep -i amazon to see which version is running.

The active version is 2.5.7.202007161601

I now set up a fresh installation of openHABian and I was able to login again.

There seems to be something wrong with my old installation…

2 Likes

Maybe we need to introduce some „purge all we know „ command, similar to „clearPairings“ in HomeKit.

1 Like

Finally I was also able to login with my old openHAB-installation.

I changed the “account”-thing (just another account-ID) and suddenly it worked…

Everything is working fine, TTS from a rule is working immediately, only TTS started through “LastVoiceCommand” is delayed, but I think that was already mentioned above.

1 Like

What do you mean by „TTS from lastVoiceCommand“?

Sorry, bad description…

I have one TTS command which is triggered by a rule through two switches (if switch A and switch B are ON at the same time, let Alexa say something), this works immediately.

Then I have a second TTS command which is triggered by a rule through LastVoiceCommand (if the LastVoiceCommand-String contains “welche schicht” say something). This works, but it needs quite long until the LastVoiceCommand item is updated and even longer until Alexa answers.

Do you use the latest smarthome additions?

I only downloaded the latest jar from here.

Where do I find those additions please?

They are included in that jar, the question is, if you use them.

@Trinitus01 and me don‘t see the delays but we both don‘t use the smarthome additions (available since 2.5.6 or in the previously shared „beta“ from this thread).

If you don‘t have things of type smartHomeDevice or smartHomeDeviceGroup, you don‘t use them. Of you have them, you use the smarthome additions.