SmartThings Community

Echo Speaks Examples

I’m getting — I can’t find Dog Barking Version 4 on Spotify…

Ideas ?

Simple one:
If time is after 9:30pm
And salt lamp gets turned off,
Speak “goodnight wife” thru bedroom echo dot

3 Likes

LOVE this app, been waiting for something this easy.

#1, when I put my house into ‘goodnight’ mode, Alexa now tells me if one of my outdoor doors or gates is left open

#2, I have a keypad lock. When my son comes home from school using the keypad, it waits 20 seconds for him to get to the kitchen and Alexa welcomes him home.

I’m sure I will come up with more stuff, but even the simple things are awesome.

I’m paying for Spotify service so maybe that has something to do with it???

I have a premium account too… I can find it using my Spotify app… So my Syntax is wrong… Hum…

The first piston pictured below is a typical announcements piston that I use. As you can see when a trigger is activated, instead of sending an announcement to a bunch of speakers, it just sets a single global variable to a unique message.

Update to 2nd Piston below
I have created a second global variable to trigger the piston. This is because if an action occurred multiple times WC would not see the updated variable as a change, since it was updated to the same data. Such as, The back door has opened. So, I would only receive the message once while there door could have open and closed multiple times. So, now the other pistons update the MSG variable as well as update the pistonTrigger variable with the variable $now.

The second piston pictured below is my speaker control piston. What this does is set up audio zones based around my echo devices. These zones have different conditions to determine if the zone is active or not. The piston is triggered by the change of the single global variable. When the variable changes a snapshot of the piston is taken and then executed. If a zone is active, then that zone receives the announcement. If it is inactive, then no announcement.

Due to the snapshot (this is a built in function of how WC works) I can a multiple actions occur at very close intervals, they never ever happen at the exact same time, and the unique message of the variable is preserved for the announcement.

Echo Speaks uses the built in que system to receive, store, and play the announcements in order.

This gives me a few benefits. If a single speaker is in 10 different announcement pistons and I want to change how that speaker announces, then I only update the control piston… not all 10 of the others, thus making maintenance very easy indeed.

4 Likes

Finally I can use my xiaomi magic cube as a remote control for music

2 Likes

I’ve noticed that you use a lot of Mode= conditions in your pistons. Do you have a method of showing / controlling the current mode on the dashboard? I know I can create push buttons to set but I would like to know my current mode also.

Which dashboard?

If I want to know the mode I usually just ask my nearest Alexa device.

I also have a piston that runs every 15 minutes and verifies the correct mode is in place. If it finds that the mode is not correct it will send me a notification and then attempt to correct the error.

I was just looking for a cool way to show the current mode on my “SmartThings Favorites” like a device and then possible on my Actiontiles as a device.

1 Like

hmmm, I’m not sure. I do not use either of those.

Just inquiring is all. I’m wondering if I should continue to code against modes if it’s not easily displayable (current mode) in SmartThings.

example.
If Mode = Night do something
If Mode = Morning do something else
etc…

Are they trying to push us to Scenes?

Does the set level work? It will set the echo to 25% (I assume 4 on the echo)

You can do this with webcore and Actiontiles. I’m not following the issue.

Just took a peek over there and I can indeed show my mode in ActionTiles, thanks.
I was looking to do that same type of thing "Mode= " status in my Home / Favorites under ST Classic. Am I the only one left still using the Favorites Screen in ST? I must be… :blush: I have taken over this thread with an unrelated topic. I’m going to create a new topic if I have any further questions.

See my repost below…

1 Like

so in webcore echo speaks devices show up as a music player?

thanks.

This is very smart. Two questions

  1. What is the purpose of lines 128? It is for presense but doesn/t the entire rest of the piston assume that either through motion or physical interaction a sensor till trigger the appropriate speaker? Otherwise, why not say restriction for the entire piston only when presense 1, 2, or 3 are present?

  2. Wouldn’t some of your zones not work. What I mean is you need to have motion active or contact open or switch on. what happens with the motion becomes inactive, contact closes or you turn of the switch? That would mean the speaker wouldnt work and you might still be in the room.

Forgot to respond , that was it, I had the echo’s defined in both sections

1 Like

@BBoy486 , I will respond a lil later, out shopping for Thanksgiving Dinner

1 Like