You are using an old version of the binding (Maybe the 2.4 released one). The callstack shows, that the StateDescriptionProvider makes an REST call.
Please update to the version in this thread.
I am trying to configure the echo dot. I have amazon echo account configured. Through paper UI if I switch on the flash briefing and select the echo device it starts playing. However, there is a weird behaviour in terms of items and sitemap. I have never been able to get it working. Also my echo device does not show online at all below is the snapshot, before this my thing configuration
I have all my echos (12) TTS in a group called gEchoTTS. When I want to send a TTS message to that group, I get:
2019-11-20 08:55:48.651 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler@ce4cab': POST url 'https://alexa.amazon.com/api/behaviors/preview' failed: Too Many Requests
org.openhab.binding.amazonechocontrol.internal.HttpException: POST url 'https://alexa.amazon.com/api/behaviors/preview' failed: Too Many Requests
at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:654) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceNode(Connection.java:1472) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceCommand(Connection.java:1457) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceCommandWithVolume(Connection.java:1448) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.textToSpeech(Connection.java:1421) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler.startTextToSpeech(EchoHandler.java:784) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler.handleCommand(EchoHandler.java:631) ~[?:?]
at sun.reflect.GeneratedMethodAccessor94.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) [102:org.eclipse.smarthome.core:0.10.0.oh240]
at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [102:org.eclipse.smarthome.core:0.10.0.oh240]
at com.sun.proxy.$Proxy151.handleCommand(Unknown Source) [191:org.openhab.binding.amazonechocontrol:2.5.0.-2019-09-12]
at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]
at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]
at sun.reflect.GeneratedMethodAccessor93.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) [102:org.eclipse.smarthome.core:0.10.0.oh240]
at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240]
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) [?:?]
No, and it can not supported. Only devices which you find in the routines configuration in the alexa app as as a selection option can be used.
Alexa Auto seem to be a âadd-onâ and not a real device.
Well kind of once the timer hits its last 10 seconds. There is a little animation/effect where the numbers count down to zero.
I can send you a video of it via private message of how it looks like if you wish.
Hi salexes,
the same behavior should then be possible by making REST calls to the amazonechocontrol proxy server. If you have some programming experience, you can make a PUT request again the endpoint /api/notifications/createReminder
The Json format can be derived from this class
To stop a timer make a DELETE request /api/notifications/<Id of the timer>
Sorry, all of them are only hints for you, I donât have the time to provide a full working example.
watch this thread since months and definetely love your work, appreciate it very much while have been able to set up and successfully run echo, echo plus and echo show.
Just wonder if you are interested to control
echo connect
as well?
If yes, let me know, I may be able to serve with any log / help you may need. (maybe open a seperate thread for this or even PM me)
Keep on your fantastic work, thousands of OH user love that
I need your help. I have the same problem as desrcibed in several post here, but couldât find a hint to solve my problem.
Found something (here), that if a lot of requests are made in a short period of time, the server answers with a bad request error. But I donât think that this is the same issue, because I have the same problem if I just do one TTS Call in 24 hours.
Maybe you have an idea?
Here is the Log:
2019-12-10 23:21:25.547 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:echoLiving' changed from UNKNOWN to ONLINE
2019-12-10 23:21:25.555 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:echoCorridor' changed from UNKNOWN to ONLINE
2019-12-10 23:21:25.560 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:echoKitchen' changed from UNKNOWN to ONLINE
2019-12-10 23:21:25.567 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:account1:echoBedroom' changed from UNKNOWN to ONLINE
2019-12-10 23:21:25.698 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:account1' changed from OFFLINE (CONFIGURATION_PENDING): Wait for login to ONLINE
2019-12-10 23:21:30.152 [vent.ItemStateChangedEvent] - Echo_Living_Room_TTS changed from Test to
==> /var/log/openhab2/openhab.log <==
2019-12-10 23:21:49.479 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'Test.rules'
==> /var/log/openhab2/events.log <==
2019-12-10 23:21:56.938 [vent.ItemStateChangedEvent] - Basement_Pantry_GasDetector changed from 256.00 to 257.00
==> /var/log/openhab2/openhab.log <==
2019-12-10 23:22:00.414 [INFO ] [ipse.smarthome.model.script.TestRule] - Test
==> /var/log/openhab2/events.log <==
2019-12-10 23:22:00.425 [ome.event.ItemCommandEvent] - Item 'Echo_Living_Room_TTS_Volume' received command 50
2019-12-10 23:22:00.431 [ome.event.ItemCommandEvent] - Item 'Echo_Living_Room_TTS' received command Test
2019-12-10 23:22:00.450 [nt.ItemStatePredictedEvent] - Echo_Living_Room_TTS_Volume predicted to become 50
2019-12-10 23:22:00.461 [nt.ItemStatePredictedEvent] - Echo_Living_Room_TTS predicted to become Test
2019-12-10 23:22:00.464 [vent.ItemStateChangedEvent] - Echo_Living_Room_TTS changed from to Test
==> /var/log/openhab2/openhab.log <==
2019-12-10 23:22:00.687 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler@10b5cdb': POST url 'https://alexa.amazon.de/api/behaviors/preview' failed: Bad Request
org.openhab.binding.amazonechocontrol.internal.HttpException: POST url 'https://alexa.amazon.de/api/behaviors/preview' failed: Bad Request
at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:549) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceNode(Connection.java:1067) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceNodes(Connection.java:1076) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.textToSpeech(Connection.java:1038) ~[?:?]
...
...
Items:
// Living
Group Alexa_Living_Room <player>
...
// Commands
String Echo_Living_Room_TTS "Text to Speech" (Alexa_Living_Room) {channel="amazonechocontrol:echo:account1:echoLiving:textToSpeech"}
Dimmer Echo_Living_Room_TTS_Volume "Text to Speech Volume" (Alexa_Living_Room) {channel="amazonechocontrol:echo:account1:echoLiving:textToSpeechVolume"}
...