Play song thru echo speaks


#1

Need help building a piston that will play a song thru echo speaks when someone breaks into my home and trips shm. Any help would be great.


#2

This is only a small part of a much larger piston i created for SHM but this portion of the piston should do what you want or at least give you a idea on creating what you want.

play%20music

I created a device global variable called @DoorOutsideSensors and put the contact sensors of all my doors leading to the outside in that global variable. I use smartthings multipurpose sensors so they can detect when someone knocks on the door as well as opening it. So this plays a dog barking sound.

Hope this helps


#3

So with a global variable, you can group all of your contact sensors together?


#4

yes. Not only that any of your pistons can use the global variables. Check ou this link to understand variables better https://wiki.webcore.co/Variable


#5

Awesome, this helps tremendously.


#6

Can u use a song that is on your phone.or does.it have to go thru amazon music?


#7

There are several music services that it supports

music%20services


#8

Is there a way to have it repeat or loop the playback?