Release Candidate and Support: Amazon Echo Control Binding

Hi,

the lastvoicecommand do not work anymore. And tts too.

And when i change the sound level to something… The dimmer in openhab revert back to 0 ( without really affecting the real sound level of any echo ).

Those behaviors were not present in the first 2-3 week i installed this binding beta (3). I didn’t do any change

I’m finding the Echo Dot’s aren’t working for me (I’m in the US) but the larger Echo’s are. I think Amazon changed the API for the different devices they just released which intern has affected the device list definitions in this binding.

Here’s the error I get on the Echo Dot’s ONLY now.

2018-10-01 18:25:05.086 [INFO ] [.eclipse.smarthome.model.script.Echo] - ** Start of Echo Routine on Loft
2018-10-01 18:25:05.318 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.handler.EchoHandler@6a4d4f32': POST url 'https://alexa.amazon.com/api/behaviors/preview' failed: Bad Request
org.openhab.binding.amazonechocontrol.internal.HttpException: POST url 'https://alexa.amazon.com/api/behaviors/preview' failed: Bad Request
	at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:446) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceCommand(Connection.java:838) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at org.openhab.binding.amazonechocontrol.handler.EchoHandler.handleCommand(EchoHandler.java:330) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at com.sun.proxy.$Proxy183.handleCommand(Unknown Source) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [106:org.eclipse.smarthome.core.thing:0.10.0.201805151356]
	at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [106:org.eclipse.smarthome.core.thing:0.10.0.201805151356]
	at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-10-01 18:25:08.785 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.handler.EchoHandler@6a4d4f32': POST url 'https://alexa.amazon.com/api/behaviors/preview' failed: Bad Request
org.openhab.binding.amazonechocontrol.internal.HttpException: POST url 'https://alexa.amazon.com/api/behaviors/preview' failed: Bad Request
	at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:446) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceCommand(Connection.java:838) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at org.openhab.binding.amazonechocontrol.internal.Connection.textToSpeech(Connection.java:796) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at org.openhab.binding.amazonechocontrol.handler.EchoHandler.handleCommand(EchoHandler.java:520) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at com.sun.proxy.$Proxy183.handleCommand(Unknown Source) [193:org.openhab.binding.amazonechocontrol:2.4.0.201808261949]
	at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [106:org.eclipse.smarthome.core.thing:0.10.0.201805151356]
	at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [106:org.eclipse.smarthome.core.thing:0.10.0.201805151356]
	at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [99:org.eclipse.smarthome.core:0.10.0.201805151356]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]

Best, Jay

In US also, this has been happening all day.

2018-10-02 13:20:12.365 [INFO ] [mazonechocontrol.internal.Connection] - Login failed: Login fails. Check your credentials and try to login with your webbrowser to http(s)://<youropenhab:yourport>/amazonechocontrol/account1

Important Message! To better protect your account, please re-enter your password and then enter the characters as they are shown in the image below.

2018-10-02 13:20:15.408 [INFO ] [mazonechocontrol.internal.Connection] - Login failed: Login fails. Check your credentials and try to login with your webbrowser to http(s)://<youropenhab:yourport>/amazonechocontrol/account1

Important Message! To better protect your account, please re-enter your password and then enter the characters as they are shown in the image below.

==> /var/log/openhab2/events.log <==

2018-10-02 13:20:15.422 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:account1' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): Login fails. Check your credentials and try to login with your webbrowser to http(s)://<youropenhab:yourport>/amazonechocontrol/account1

Important Message! To better protect your account, please re-enter your password and then enter the characters as they are shown in the image below.

2018-10-02 13:20:15.433 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:Echo_Plus' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2018-10-02 13:20:15.444 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:Echo_Dot1' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2018-10-02 13:20:15.451 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:Echo_Dot2' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2018-10-02 13:20:41.671 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:Echo_Plus' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2018-10-02 13:20:42.288 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:Echo_Dot1' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2018-10-02 13:20:42.989 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:Echo_Dot2' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2018-10-02 13:20:44.756 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:account1' changed from OFFLINE (CONFIGURATION_ERROR): Login fails. Check your credentials and try to login with your webbrowser to http(s)://<youropenhab:yourport>/amazonechocontrol/account1

Important Message! To better protect your account, please re-enter your password and then enter the characters as they are shown in the image below. to ONLINE

Happening here in Australia as well

Any idea when this binding is going to be updated so Alexa knows the current status of the item? Seems like this has been an outstanding issue for quite some time.

Hi All

Im preparing to set this up and ordered an Echo Dot 3.

Am I right in saying I only need this binding and do not need to run through the rather extensive and confusing instructions to expose OH2 items through Openhab Cloud to AWS?

Thanks

Hi everyone.
Have the following problem. After installing beta 2.4(3). the hue binding doesn’t change the state of the lights, when i switch them on or off through an echo device by voice.
And the network binding doesn’t change the state of devices( online/offline) too.
After reinstalling the 2.3 version, all is okay.
Greetings,
Markus

Hi everyone

I try to post my question again here in this channel.

I have an Amazon Echo Spot with this small screen. Is it somehow possible to post messages (in written form) from openHAB on to this screen? Using colors rings to state the importance of the messages (red=severe, orange important, blue just status etc.). I managed to let Alexa speak these messages, but my wife does not like it and its not really sustainable. An important status message with red ring should stay longer and indicate, that something should happen.

Are there possibilities?

Thanks Jan

Hello @Master79 ,
i can confirm your issues in milestone 3 and 4.
I have same problems.
At the moment i have removed the echo binding.

Hi borcon.
Okay. Hope Michael can help us. I have reinstalled Version 2.3. So i can use it in the moment.
Thanks,
Markus

Is it possible to use the Binding in order to control an alexa skill?
Alexa, tell abc to do xyz would raise the corresponding event within a skill.

Hi @Master79,
i don’t think that the echo binding can fix this issue.
In version 2.3 the binding works without any issues.
Maybe something was changed in the core of openhab.

Maybe @michi or @rlkoshak can help us to identify and solve the issue.
I think many people have the issue but don’t know this.

Thanks,
borcon

Hi borcon.
I have this problems with beta 3 2.4 by using openhab 2.3 stable. So it could be the echo binding.
Do you have seen other bindings which doesn’t work correctly like the hue and network binding?
Greetings,
Markus

I’ve no knowledge with Alexa so can’t help.

2 Likes

Sorry markus, i got it wrong. I thought the beta 3 is working with the stable. So i am with you. I think the binding cause the issue.
Does anyone have the previous version of the binding?
I think my other bindings are working. But i will check it again.

@borcon Here’s the 2.3 jar file https://dl.bintray.com/openhab/mvn/org/openhab/binding/org.openhab.binding.amazonechocontrol/2.3.0/

Other than having to log back in on occasion, should work fine if your running stable.

Did you have any luck with the linked version, I was getting the same errors with 2.4 M4 using the linked version.

The link posted above is for OH 2.3

Here’s a link for the 2.4 snapshop jar updated 10/10/18 https://openhab.ci.cloudbees.com/job/openHAB2-Bundles/lastSuccessfulBuild/org.openhab.binding$org.openhab.binding.amazonechocontrol/

Hi H102.
Do you know where i can find the 2.4 Beta 1?
That would be great!
Thanks,
Markus

There is no Beta 1. There is a Milestone Release 3 and Milestone Release 4 (MR 1 and 2 were trial runs) but no betas.