first of all it is important that the script is running on a machine where the traffic goes through. I have a central server instance that acts as a router, firewall and host for other virtual servers. All Internet traffic needs to go through the instance where the script is located.
The “Amazon Echo Control” binding will be part of the official OpenHAB 2.3 distribution
Starting from the build tonight, the binding is include in the daily snapshot (unstable) build of OpenHAB 2.3. Please read this post and this post before you upgrade.
I want to say thank all of you for your beta testing. Thanks for you patience and endurance to bring the binding to this level!
“if you open the page http(s)://youropenhab:port/amazonechocontrol (e.g. http://localhost:8080/amazonechocontrol 7) you can verify if the RC3 is correctly installed. it should look like that:”
I am using a rule to set a volume before an announcement. A few seconds after I send the new volume command I see th Alexa go from the volume I set to either undefined or 2% higher than the value I sent.
edit to add… Alexa volume voice command is integer steps 1 to 10. I suspect that the unstable volume may be happening when % values are used that fall between the equivalent integer eg 30 is OK but 35 jumps around
2018-05-29 19:33:33.869 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.handler.EchoHandler@b60de0': POST url 'https://alexa.amazon.de/api/np/command?deviceSerialNumber=GABCDEFGHIJ&deviceType=A3S5BH2HU6XXX' failed: Not Found
org.openhab.binding.amazonechocontrol.internal.HttpException: POST url 'https://alexa.amazon.de/api/np/command?deviceSerialNumber=GABCDEFGHIJ&deviceType=A3S5BH2HU6VXXX' failed: Not Found
at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:404) [216:org.openhab.binding.amazonechocontrol:2.3.0]
at org.openhab.binding.amazonechocontrol.internal.Connection.command(Connection.java:627) [216:org.openhab.binding.amazonechocontrol:2.3.0]
at org.openhab.binding.amazonechocontrol.internal.Connection.playRadio(Connection.java:645) [216:org.openhab.binding.amazonechocontrol:2.3.0]
at org.openhab.binding.amazonechocontrol.handler.EchoHandler.handleCommand(EchoHandler.java:369) [216:org.openhab.binding.amazonechocontrol:2.3.0]
at sun.reflect.GeneratedMethodAccessor138.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) [101:org.eclipse.smarthome.core:0.10.0.oh230]
at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [101:org.eclipse.smarthome.core:0.10.0.oh230]
at com.sun.proxy.$Proxy129.handleCommand(Unknown Source) [216:org.openhab.binding.amazonechocontrol:2.3.0]
at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [108:org.eclipse.smarthome.core.thing:0.10.0.oh230]
at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [108:org.eclipse.smarthome.core.thing:0.10.0.oh230]
at sun.reflect.GeneratedMethodAccessor137.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) [101:org.eclipse.smarthome.core:0.10.0.oh230]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [101:org.eclipse.smarthome.core:0.10.0.oh230]
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) [?:?]
after my update to 2.3 stable, I wanted to use the Eche Control Binding, starting with Volume Control via KNX.
I used the KNX switch to control the volume of my Onkyo, but I want to change that to control the volume of my Echo dot.
I made a dimmer Item with a KNX Group adress and linked that to the volume thing in the Paper UI.
What happens is, that the volume is always set to 1. I think this is due to the fact, that the bus sends a 12,5% increase command again and again as long as I am on the button.
Is ther any workaround, maybe with pressing the button just once to increase the volume by one step (no press and hold)
I hope you guys understand what I mean an can give me a hint.
@Daniel_OH: Hi my guess is, that you should use a rule for that kind of things and it would be better to create a seperate thread just because it’s actually a general topic.
I think I found out what causes the error. If I am putting a item linked to the radio channel in a group with other switch items and try to set this group to ON or OFF this error appears. It is a weired thing, because changing the radio item of my echo within a rule without a group its working like a charm. Switching the radio channel with control in paper ui is also working.
@Daniel_OH : Sorry, I meant no offence. It was actually not a command but an advice. The chance that the “right” guys read your problem is just much higher if they see the topic in the community. So as faar as I am concerned you can write whatever you want to.
I know I will just add this ‘SportsUpdate’=‘Sports Update’ in the mappings and it will show up but when I choose it nothing happen. How can I get the data for this briefing please?
Hi, no this will not work, the available option are derived from the possibilities of routines. If you find a way to start the sports update as a routine, you could use the startRoutine channel. Or you can check if you can get the update as flashbriefing, then you can create a flashbriefinprofile thing for it.
Kind regards, Michael
Ive got Alexa playing a random alarm sound, sleep command for some milliseconds to let it play then a random “hey humans…” style of introduction and then plays the TTS I want it to (in my case a calendar reminder) - its not perfect as the alarm sound doesnt start playing at the exact same time each time so sometimes it sounds cut off but is pretty good and the random introduction keeps the kids amused.
I was thinking of trying to fade out the alarm sound with a step down of the volume but I think that will then be mucked up with the volume beep.
Great binding @michi !
I have 6 echo dot devices and I use them as an alarm clock, however I would like my heating to turn on 15 minutes before the alarms goes off, and also it would be nice to slowly increase light level before alarm goes off. The problem is that I can not figure out how to get the current alarm time. I can do things with IFTTT when the alarm goes off, but I would like do things before the alarms goes off! Is this possible to implement?