I have the Alexa control binding installed and have two rules that make use of the tts.
The first rule turns my heating off if one of my main doors is open for 20 seconds or more. It gets Alexa to say “Heating turned off” or “Heating turned on” and works flawlessly.
The second rule if for my smoke and co alarms. On activation the lights all come on and two sirens sound. Alexa will then say “Emergency Fire Fire” or “Emergency Carbon Monoxide in the Boys room”
This rule woks but the Alexa tts stutters.
Here is the rule;
// Safety Alarm Rules
// Turn on lights and sirens when alarm is active
rule "gSafety Alarm Group Activated"
when
Item gSafetyAlarms changed to ON
then gLights_HandL.sendCommand(ON)
Light_scene.sendCommand(0)
gSafetySiren.sendCommand(ON)
sendNotification("xxxxx@gmail.com", "Fire or CO Alarm Active")
end
// Turn OFF sirens when alarm no longer active
rule "Silence Sirens"
when
Item gSafetyAlarms changed to OFF
then gSafetySiren.sendCommand(OFF)
end
// Echo Announce Emergency
rule "Have Echo announce CO Alarm"
when
Item gCOAlarms changed to ON
then
Echo_Bedroom_TTS.sendCommand('Carbon Monoxide Alarm')
Echo_Boys_Room_TTS.sendCommand('Carbon Monoxide Alarm')
Echo_Living_Room_TTS.sendCommand('Carbon Monoxide Alarm')
end
rule "Have Echo announce Fire Alarm"
when
Item gFireAlarms changed to ON
then
Echo_Bedroom_TTS.sendCommand('Emergency Fire Fire')
Echo_Boys_Room_TTS.sendCommand('Emergency Fire Fire')
Echo_Living_Room_TTS.sendCommand('Emergency Fire Fire')
end
I get the following in the log;
2018-12-11 18:52:40.002 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler@1335498': POST url 'https://alexa.amazon.co.uk/api/behaviors/preview' failed: Bad Request
org.openhab.binding.amazonechocontrol.internal.HttpException: POST url 'https://alexa.amazon.co.uk/api/behaviors/preview' failed: Bad Request
at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:513) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceNode(Connection.java:1029) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.executeSequenceCommand(Connection.java:1014) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.textToSpeech(Connection.java:1005) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler.startTextToSpeech(EchoHandler.java:651) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler.handleCommand(EchoHandler.java:528) ~[?:?]
at sun.reflect.GeneratedMethodAccessor87.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.201812091851]
at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [102:org.eclipse.smarthome.core:0.10.0.201812091851]
at com.sun.proxy.$Proxy146.handleCommand(Unknown Source) [191:org.openhab.binding.amazonechocontrol:2.4.0.201811161948]
at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [109:org.eclipse.smarthome.core.thing:0.10.0.201812091851]
at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [109:org.eclipse.smarthome.core.thing:0.10.0.201812091851]
Any ideas?