Telling ECHO to turn off a script,

I am stuck at the moment. I have a script that turns off music playing throughout my house. I have it linked up with the amazon echo with the keyword “Sonos”. If i say “Alexa turn on sonos”, it runs the script just fine, however when i say “turn OFF”, alexa tells me that sonos doesn’t support that. Is there a simple way to toggle the script so i can run the script by saying OFF instead of ON? If not, what would be the easiest way to implement this? With how powerful HASS is i feel like i am missing something extremely simple!

You can use Alexa routines to accomplish this.

If you must use homeassistant perhaps a template switch with the off action to run your script. Default the switch to on.

Emulated_hue has off_maps_to_on for this exact purpose. No idea if such a thing exists with any of the other methods for integrating Alexa.

I tried the routines and it seems to work! I would rather have everything centrally configured though, so once i figure out the switch template i will move it over. Thanks!

After doing a bit of searching it doesn’t seem like this exists for the Echo :(, thanks for the help though!

Emulated hue is for echo, that’s what it’s for.

I was entirely not aware of this, after a quick scroll through the page it seems like it is more efficient, i might actually swap over!

1 Like