Link alexa to a smart plug, to turn on/off with music?
Link alexa to a smart plug, to turn on/off with music?
Author
Discussion

Andeh1

Original Poster:

7,500 posts

229 months

Tuesday 30th December 2025
quotequote all
I have a receiver powering speakers, with the aux in from an alexa. It works and sounds good.


I want to link alexa so that when I "alexa play music" the smart plug (and receiver) turn in, and when I "stop music" it turns off.

But for the life of me I can't figure it out, and the alexa help is frankly bks.

Any tips?

Thanks

paulrockliffe

16,371 posts

250 months

Tuesday 30th December 2025
quotequote all
I have the same setup but with Google Chromecast Audios, I have them hooked up to Home Assistant and that can see when they start and stop playing audio. Home Assistant then turns the amp sockets on and off to suit. Don't know enough about Alexa to knowing it can do the control stuff itself, but I presume you can hook up Alexa to Home Assistant if it can't.

Ham_and_Jam

3,389 posts

120 months

Tuesday 30th December 2025
quotequote all
Not sure the difficulty here, unless i m missisng something.

Just pair the smart plug with Alexa, then plug your receiver into it. Leave the Receiver powered on so the smart plug does the on / off.

You can now turn on the receiver with a voice command, and play music from Alexa as previous.

I would avoid linking the playing of music voice command to the powering of the device, as you may often want to stop / start playing music without powering off.

Im sure you could set a ‘routine’ in the Alexa app if you really wanted to do it though.

Andeh1

Original Poster:

7,500 posts

229 months

Tuesday 30th December 2025
quotequote all
Yeah, I can do it individually fine... But would far prefer to link them together so it happens seemlessly, especially with kids who won't remember to turn the receiver/smart plug off seperately to stopping the music.

The routines within alexa are not intuitive at how I can make it work. With music being such a large part of alexa, I don't understand why it isn't more central to setting routines. I simply can't find any routines for it, nor build one.

When I build a routine it asks me to do a "when.... Do this...."

So I go: "when..... Play music...." - it says. 'alexa can't execute this response, try another'

So I try "when... Start music..." it then only allows me 'schedule' as an option to "do" after this command.

Edit... Found a way of setting a routine of "start music...." which turns the receiver in, but doesn't play the music.

Edited by Andeh1 on Wednesday 31st December 06:51

Up_North

290 posts

262 months

Tuesday 30th December 2025
quotequote all
What music do you want it to play when you say play music ?
This routine plays non specific music though seems to be from those I ve played often. Replace TV Light with whatever the name of your smart plug is for your receiver. The Play “Music” bit is populated by selecting Music and Podcasts from the Action list, then just type Music in the Play box at the top.

Obviously this only works if your receiver has a proper on/off button and not a logic button which always requires pressing after power on.

Indicidentally if your smart plug is one of the latest Tapo P110 then you can set a timer so it switches off X minutes after it is switched on - this is in the cog menu - auto-off timer NOT the one off timer in the Tapo main device screen,


Edited by Up_North on Tuesday 30th December 19:00


Edited by Up_North on Tuesday 30th December 19:07

LunarOne

6,893 posts

160 months

Tuesday 30th December 2025
quotequote all
There's an app called IFTTT (If this, then that) that allows you to do some programming based on various conditions. I don't have an Alexa to try it with, but you should be able to set it up so that if music is playing, then the smart plug powering the receiver should be on. If you're very clever, you could set it up so that the receiver turns off after music has been stopped for a period of time.

I can't remember the exact programming options you have at your disposal but I think it should so the trick. IFTTT is available for both Android and iOS.
If that doesn't work, you might try using the "shortcuts" app on iOS devices, which allow programming in a similar way. I'm not sdure if it's more powerful than IFTTT, but it is more integrated.

I'm not sure if Alexa can do things like this without a phone.

Andeh1

Original Poster:

7,500 posts

229 months

Wednesday 31st December 2025
quotequote all
Thanks guys, that's helpful.

Copying your setup Up_North works, and the turn off is good. However when I go "start music" alexa hears, but doesn't do anything. But, when I repeat the command a second time it works perfectly.... No rhyme or reason why it doesn't do it the first time!?


i4got

5,923 posts

101 months

Wednesday 31st December 2025
quotequote all
Andeh1 said:
Thanks guys, that's helpful.

Copying your setup Up_North works, and the turn off is good. However when I go "start music" alexa hears, but doesn't do anything. But, when I repeat the command a second time it works perfectly.... No rhyme or reason why it doesn't do it the first time!?
Just a theory may be rubbish.

The command is typed in as “alexa start music’

If alexa is your wake word and alexa hears what follows then it may hear just “start music’ ?

Second time Alexa is awake so hears the entire ‘alexa start music’

To test just say “alexa alexa start music.”


Up_North

290 posts

262 months

Wednesday 31st December 2025
quotequote all
Andeh1 said:
Thanks guys, that's helpful.

Copying your setup Up_North works, and the turn off is good. However when I go "start music" alexa hears, but doesn't do anything. But, when I repeat the command a second time it works perfectly.... No rhyme or reason why it doesn't do it the first time!?
Strange - works fine for me. What happens when you manually run the routine (press the play icon to the right of the routine name)?

Also make sure you have the ‘Play music’ function as the last step in the routine.

Andeh1

Original Poster:

7,500 posts

229 months

Wednesday 31st December 2025
quotequote all
Thanks guys, have had to dismantle things until my new receiver arrives on Monday, then will give it another go. Had only set it all up to test it out in advance.

New one is going in the lounge with my old one (15 years old!) will then go back into the kitchen/snug to tie into the alexa & speakers there.

Andeh1

Original Poster:

7,500 posts

229 months

Monday 16th February
quotequote all
Just coming back to this, so I've got it all working... Alexa, smart plug and my receiver powering 4 speakers.

Alexa will turn on smart plug and play music via a routine "start music".

It works perfectly via the routine in the manual approach in the alexa app, but the voice control is really temperamental.

Some days it will work fine on first go, others take 3 or 4 goes of repeating the command for it all to kick in.

Turning it off via "stop music" works every time.

Any thoughts on this? Very annoying.

Ham_and_Jam

3,389 posts

120 months

Monday 16th February
quotequote all
Have you tried renaming the routine.

Alexa sometimes just doesn’t like the string of syllables you can put together.

Try ‘turn on my music’