Released: Openhab2 Amazon Echo Control Binding (controlling alexa from openhab2)

Tags: #<Tag:0x00007f0155cf4c68> #<Tag:0x00007f0155cf4a10> #<Tag:0x00007f0155cf48d0>

(Mark) #1133

I thought my prolonged period of login stability wouldn’t last once I brag about it… I get this too now. I didn’t change anything.

��X��W)��$�k2�؟������O{B�' N��=]x�$|

�6%��JPo5<�q%åa@�~;&0Z�F��h�a�*�ǹ�7��I�X�d��5�w�#�Ⱥ� �]t�-�.}'] G@[:��2rª�>�k� O����a'Z=pm4Vi�lԟ��I�"��8�-d� 3ޟ:�`83�]\|�0���pJf������rq���[���^����sR�AS�J��Kan�/8z��ĩe^5���Qt��5#'��D�1 ��C�Έ~p��{�[o��SŅd/~4��e���jH�8��ȥ"�}�;:�T ���!�/~

Account is offline Log shows this

Login failed: POST url ‘’ failed: Not Found

PaperUI installed binding v2.3. Restart of openhab didn’t help whereas in the past it did for login issues.

[SOLVED] Amazon binding problems
Amazon account thing offline as of yesterday
(Chris Colden) #1134

Thats exactly my issue, but im not on the beta yet. :slight_smile: I’m less worried about getting the beta installed now.

(Tom) #1135

I had the same problem, and tried the same things - until I realised that as well as putting the new beta binding in addons, I needed to uninstall the binding in paperUI.
After I had done that, it went online without a login.

(Thomas) #1136
2018-11-08 22:09:37.914 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.handler.EchoHandler@xxxxxxx': POST url '' failed: Bad Request

UPDATE: Per @michi’s follow-up tip I changed my TTS voice rules to use the new channel called “textToSpeechVolume” instead of the binding’s old “volume” channel. So far I haven’t seen the error.

And the new channel command has simplified my rules. I used to have to something like this to set the TTS volume for my voice group messages:

VolumeStates = storeStates(EchoVolumeGroup1)
if(Echo_Kitchen_Volume.state!=UNDEF && Echo_Kitchen_Volume.state!=NULL) {
if(Echo_Office_Volume.state!=UNDEF && Echo_Office_Volume.state!=NULL) {
if(Echo_Theater_Volume.state!=UNDEF && Echo_Theater_Volume.state!=NULL) {
EchoTTSGroup1.sendCommand('Attention! There is a problem with the Laundry Dryer.')
if (DryerCommVolTimer === null) {
    DryerCommVolTimer = createTimer(now.plusSeconds(5)) [|
        DryerCommVolTimer = null

But now its as simple as this:

EchoTTSGroup1.sendCommand('Attention! There is a problem with the Laundry Dryer.')

BTW, there’s a similar volume setting channel called “notificationVolume” that allows the binding to change the alert sound level. Used together with the textToSpeechVolume command my voice alerts rules have less clutter. Thanks!

  • Thomas

(Thomas) #1137

I was finally able to investigate this issue because last week I switched to OH 2.4 snapshot 20181104134837-1 along with Echo Control Binding Beta 5. I don’t see the reported problem. Hopefully the latest updates have fixed it for you.

  • Thomas

(Chris Colden) #1138

Thanks mate. That has worked for me. Missed the uninstall from paperui. Added to addons folder. Uninstalled. Stopped, Cleaned cache, Started. Logged in to Amazon account and the world is good again.

(Mark) #1139

Maybe this issue is affecting this binding functioning ?

(Matt) #1140

I installed the beta version through add-ons. I couldn’t configure it through paper UI, so configured it using a thing file for accounts and devices.

(Daniel A) #1141

Has anyone been able to play a custom mp3/wav/whatever through Alexa?

Tried to make my own playlist from uploads on amazon but no luck. I was reading about plex to play audio sound.

(Mr. Wiseman) #1142

Thanks for looking into it. Yes, one of the later BETA’s fixed the monitoring issue.

BTW, I have discovered that you can have 2 different Amazon account bridges active at the same time.

Bridge amazonechocontrol:account:account1 "Amazon Account" @ "Accounts" [amazonSite="", pollingIntervalInSeconds=60]
Echo Def's Here

Bridge amazonechocontrol:account:account2 "Amazon Account2" @ "Accounts2" [amazonSite="", pollingIntervalInSeconds=60]
Echo Def's Here

Best, Jay

(Mark) #1143

Still cant login with 2.3

Maybe I am being picky or maybe its a clue but I noticed that Amazon isn’t spelt correctly in the log

2018-11-13 19:56:11.397 [INFO ] [mazonechocontrol.internal.Connection] - Login failed: POST url '' failed: Not Found

Also, if I enter the URL mentioned in the log I get this page not found message

(Tobias) #1144

I have the same problem like m4rk is describing with a german Amazon account :roll_eyes:

(Patrick De Graaf) #1145

Same issue over here. :frowning:

(Shmil Gan) #1146

same issue for me too :frowning:

(Thomas) #1147

As far as I know the only audio files you can access through this binding are those stored on the providers shown in the supported musicProviderId list found in the echo device’s control page. For the Echo Dot and Echo Show the list is only four sources:

So you should be able to access your Amazon music from this binding if you specify the channel’s musicProviderId as AMAZON_MUSIC. But even if you get it to work I suspect it will be short term fix since Amazon is shutting down their cloud service.

I’ve failed at that, but haven’t given up.
I have a Synology NAS running the Plex Media Server. Plus I’ve installed the Plex Skill in my Amazon account. I can play the stored music files by voice command from any of my Echo devices but not from the Echo Control binding.

However, I’ve come to the conclusion that this binding won’t support Plex voice actions. But OH2 has a Plex binding ( so I will try that next. Along with the hue emulation I think I can control the Plex server from an Echo. Or so I hope.

  • Thomas

(Paul Miller) #1148

same issue here but for AU url

2018-11-14 16:35:36.175 [INFO ] [mazonechocontrol.internal.Connection] - Login failed: POST url '' failed: Not Found

Can anyone explain what the impact is other than a log entry every minute?


(Nick Moad) #1149

same for me in AU, I note the later versions have a fix.

I’m going to try the beta binding

ok if you are having issues just uninstall the in built binding through paperui and drop the 2.4 (6) from the first post in to the usr/share/openhab2/addon folder

(Shmil Gan) #1150

Thanks for the fast response.
I am working with an “old” OH 2.2 …
I will upgrade the OH and the use the updated binding

(tmn103) #1151

Edit - this was fixed by moving to beta 2.4 (from snapshot), clearing \tmp and \cache and adding the new beta version.

Just trying to update to the latest version. It didn’t seem to work, so I uninstalled and then added the beta version.

I am using an account, but can’t login.

I’ve tried a couple of uninstall/reinstalls and restarting etc.

In Things, the error is:

Error message from logfile is:

java.lang.IncompatibleClassChangeError: Expected static field org.openhab.binding.amazonechocontrol.discovery.AmazonEchoDiscovery.scheduler
        at org.openhab.binding.amazonechocontrol.discovery.AmazonEchoDiscovery.startBackgroundDiscovery( ~[?:?]
        at org.openhab.binding.amazonechocontrol.discovery.AmazonEchoDiscovery.activate( ~[?:?]
2018-11-14 06:42:00.267 [WARN ] [rg.openhab.binding.amazonechocontrol] - FrameworkEvent WARNING - org.openhab.binding.amazonechocontrol

(Leigh Saunderson) #1152

I’ve tried with the older 2.3 stable release several times previously, and just this afternoon have reinstalled using the latest snapshot…

Regardless of version, it seems to be failing when trying to reach the amazon page to login, looks like it doesn’t exist…

This is using an account.

2018-11-14 17:52:50.022 [INFO ] [.jetty.server.handler.ContextHandler] - Started HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.openhab.binding.amazonechocontrol_2.4.0.201811110923 [263], contextID=default]}
2018-11-14 17:52:50.026 [INFO ] [internal.service.FeaturesServiceImpl] - Done.
2018-11-14 17:52:50.543 [INFO ] [mazonechocontrol.internal.Connection] - Login failed: POST url ‘’ failed: Not Found

If I try and browse to that , I get " Looking for Something?
We’re sorry. The Web address you entered is not a functioning page on our site." from amazons website.

When I’ve tried the activation step listed in the docs, (http://openhab:8080/amazonechocontrol/6daee338/ in my case) , it does load (after a few seconds), a page of non-text chars,which I thought looked suspicously like a compressed archive, but having just saved it out and viewed in notepad+, there’s syn and ack symbols in there, so presumably it’s the reply back from amazon, but being https it’s not legibile. (watched tcpdump on my OH2 box while hitting the amazonechocontrol link, and it has activity each time I reload the link)

Anything I can do to help debug?
Keen to get my echo dot(s) hooked up to OH2 as I’m trying to pickup workng on it after a long while with no time to play with it :slight_smile: