Evening all,
I recently purchased a full complement of SONOS Ones for a few rooms of the house and have been integrating them with my openHAB setup. All has gone smoothly except for getting amazon echo control to work the way I want using the amazonechocontrol binding.
Everything seems to work fine apart from the all-important item: “lastVoiceCommand”. All other items work as expected, but this never gets updated (i.e. it should receive an update with the last voice command as text). My plan is to use the lastVoiceCommand to do all kinds of automation, but I’m utterly stuck!
Here’s my alexa_things file:
Bridge amazonechocontrol:account:alex "Amazon Account" @ "Accounts" [amazonSite="amazon.co.uk", email="[my email]", password="[my password]", pollingIntervalInSeconds=60]
{
Thing echo alexa_ba "Bathroom Alexa" @ "Bathroom" [serialNumber="30c22c7713dc4470850ad81f7c3831d8"]
Thing echo alexa_b "Bedroom Alexa" @ "Bedroom" [serialNumber="557ebe8b97864f6583ff9d52fe76af26"]
Thing echo alexa_d "Dining Room Alexa" @ "Dining Room" [serialNumber="0adc77c2fc7d42dcbd0002a344daad5f"]
Thing echo alexa_g "Garden Alexa" @ "Garden" [serialNumber="aa64a92a876a45d283a35fe5fdfa546a"]
Thing echo alexa_k "Kitchen Alexa" @ "Kitchen" [serialNumber="fcbd5049f5964e738b99efc58fd4441c"]
Thing echo alexa_l "Lounge Alexa" @ "Lounge" [serialNumber="eea44d0b363c41fea81f5ca8f537977f"]
Thing echo alexa_lc "Lounge (c) Alexa" @ "Lounge (c)" [serialNumber="5cabd21791a0467298eacfdb230e114b"]
Thing echo alexa_i "Alexa iPhone" @ "Mobile" [serialNumber="2d38b4d5fd0e49bab576778d460349b6"]
}
And here is the alexa_items file (the full file contains the same for 6 devices/rooms):
Group alexa_ba <player>
String alexa_ba_PlayMusicCommand "Play music voice command (Write Only)" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:playMusicVoiceCommand"}
String alexa_ba_StartCommand "Start Information" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:startCommand"}
// Commands
String alexa_ba_TTS "Text to Speech" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:textToSpeech"}
Dimmer alexa_ba_TTS_Volume "Text to Speech Volume" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:textToSpeechVolume"}
String alexa_ba_PlayAlarmSound "Play Alarm Sound" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:playAlarmSound"}
String alexa_ba_StartRoutine "Start Routine" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:startRoutine"}
Dimmer alexa_ba_NotificationVolume "Notification volume" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:notificationVolume"}
// Feedback
String alexa_ba_LastVoiceCommand "Last command [%s]" (alexa_ba) {channel="amazonechocontrol:echo:alex:alexa_ba:lastVoiceCommand"}
As explained above, all other items given here receive updates and can be controlled as expected – I’ve tried many others and they all work great.
I am running openHAB on Windows 10 with stable version 2.4.0 (although I have tested this on the latest 2.5.0 stable and snapshot builds. I have also tried the latest beta version of the amazonechocontrol bindning (amazonechocontrol_2.5.0.Beta_9_Preview_1). Same behaviour.
If anyone has experience this, please let me know if there is a way to get this working.
Thanks,
Alex