yesterday my setup suddenly broke.
I am using a Switch item to trigger a rule to play specific radio stations on my echo devices.
Now i am getting this error:
An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler@f1678f': POST url 'https://alexa.amazon.de/api/np/command?deviceSerialNumber=XXXXXXXX&deviceType=A1JJ0KFC4ZPNJ3' failed: Not Found
My Echo Input “thing” shows offline and i can control it (play, pause, volume etc.).
I am on the 3.1 stable on a debian VM (openhabian image).
Here’s my config and rule:
String EG_Kueche_Echo_RadioStationId "TuneIn Radio Station Id" (EG_Kueche_Echo_Gruppe) {channel="amazonechocontrol:echo:Jonas:EG_Kueche_Echo:radioStationId"}
Switch EG_Kueche_Radio_Bob (gKNX_Restore,gKuecheRadio) {channel="knx:device:bridge:knx_device:EG_Kueche_Radio_Bob"}
Group:Switch:OR(ON,OFF) gKuecheRadio
rule "Radio Bob auf Echo Küche"
when
Item EG_Kueche_Radio_Bob changed
then
if (EG_Kueche_Radio_Bob.state == ON)
{
EG_Kueche_Radio_Absolut_Relax.sendCommand(OFF)
EG_Kueche_Radio_Sunshine_Live.sendCommand(OFF)
EG_Kueche_Echo_RadioStationId.sendCommand('s106505') //auslesen
Thread::sleep(2000)
EG_Kueche_Echo_Volume.sendCommand('50')
}
if (EG_Kueche_Radio_Bob.state == OFF)
{
if (gKuecheRadio.state == OFF)
{
EG_Kueche_Radio_Bob.sendCommand(OFF)
EG_Kueche_Echo_Player.sendCommand('PAUSE')
}
}
end
Yes see the item definition.
Radio station id item is linked to the amazonechocontrol.
The switch is linked to a knx button.
But the rule triggers so it is definitely an issue with either the string i send or the binding
Thanks for reporting. I have spoken with the Alexa maintainers of FHEM and ioBroker, and they report the same issue, so it seems to be a change on Amazon’s servers. We’ll investigate that.
It’s also broken from the Browser (I use alexa.amazon.de), so it’s not related to our implementation.
I would suggest to use the textCommand channel and send something like “Spiele Radio Bob auf TuneIn” (“Play Radio Bob on TuneIn”). That works for me and also saves you from the work of getting the station id.
Hi Jan, thanks for the hint.
This is working for the single devices. How would you handle this with alexa mulitroom devices? (wha)
There is no possibilit to send textCommands.
3.1
But as a work around, I created a routine on the alexa app and then I call this routine from OH by using startRoutine channel. And still no textCommand even in the advanced channel.
Did you upgrade from a previous version? The textCommand channel was added some time ago and unfortunately openHAB does not update existing things. If you created the thing from discovery, you can delete the thing, re-discover it and all channel-links stay.
Instead of textCommand you can use the playMusicVoiceCommand channel.
Unfortunately nether are available for wha things, so I still can’t see an easy way to start radio on a speaker group.
I have tried it after openHAB 3.2.0 and Amazon Echo Control 3.28 update.
It seams thate the “TuneIn” is still broken at Amazon (I have tried also the URL und I’ll get an “” exception in the Amazon-WebUI).