# Echo Speaks Examples

**URL:** <https://community.smartthings.com/t/echo-speaks-examples/142502>\
**Category:** Community Created SmartApps\
**Created:** [November 16, 2018, 3:12pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502 "2018-11-16T15:12:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bamarayne](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bamarayne/32/18206_2.png) [@bamarayne](https://community.smartthings.com/u/bamarayne)\
**Post date:** [November 16, 2018, 3:12pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/1 "2018-11-16T15:12:49Z")

</div>

As you can imagine Echo Speaks has been a huge success.  
Everyone knows that WebCore is the most popular rules engine in the  
ST world, so, how are you using the two together?

Post your pistons here for others to enjoy! And if you’re using other apps  
as well, let us know what you’re doing!

I’ll start with a super simple but incredibly popular one in my home. The family  
really likes this one. I call it, Elevator Music

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/6/0/60f29ac14b485089170759153d46e6d1ea20599c.png)

---

<div class="post-metadata">

**Author:** ![DarcRanger](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/darcranger/32/66532_2.png) [@DarcRanger](https://community.smartthings.com/u/DarcRanger)\
**Post date:** [November 16, 2018, 3:19pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/2 "2018-11-16T15:19:58Z")

</div>

Trash days reminder annoucement over Alexa

 ![Trash%20Collection](https://global.discourse-cdn.com/smartthings/original/3X/e/4/e48c6d6d1388857059af0d9d1ce50dd4a9a00a7f.png)

---

<div class="post-metadata">

**Author:** ![DarcRanger](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/darcranger/32/66532_2.png) [@DarcRanger](https://community.smartthings.com/u/DarcRanger)\
**Post date:** [November 16, 2018, 3:26pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/3 "2018-11-16T15:26:02Z")

</div>

Since my wife prefers not to autoset alarm for stay, I have set up a reminder. Its also covers if one of our phones thinks its still away or have a dead battery.

 ![Arming%20Reminder](https://global.discourse-cdn.com/smartthings/original/3X/d/8/d8dacbe28872d7a4ee3fbdb75d5ea96b1c26106f.png)

---

<div class="post-metadata">

**Author:** ![bamarayne](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bamarayne/32/18206_2.png) [@bamarayne](https://community.smartthings.com/u/bamarayne)\
**Post date:** [November 16, 2018, 3:31pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/4 "2018-11-16T15:31:04Z")

</div>

> [@DarcRanger](#):
>
> Trash days reminder annoucement over Alexa

These are some hardcore reminders…

---

<div class="post-metadata">

**Author:** ![kevin](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kevin/32/142294_2.png) [@kevin](https://community.smartthings.com/u/kevin)\
**Post date:** [November 16, 2018, 3:52pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/5 "2018-11-16T15:52:38Z")

</div>

Copying this over from the other thread because it is buried there…

barking dog when motion outside via spotify. what are the odds on this webcore import code???

![](https://yyz2.discourse-cdn.com/smartthings/uploads/default/optimized/3X/c/e/ceee41e60a760f6cd27be0a9d67223c994ca9842_1_411x500.jpeg)

---

<div class="post-metadata">

**Author:** ![denisshelston](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@denisshelston](https://community.smartthings.com/u/denisshelston)\
**Post date:** [November 16, 2018, 4:33pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/6 "2018-11-16T16:33:29Z")

</div>

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

Ideas ?

---

<div class="post-metadata">

**Author:** ![Glen\_King](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@Glen\_King](https://community.smartthings.com/u/Glen_King)\
**Post date:** [November 16, 2018, 4:33pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/7 "2018-11-16T16:33:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![smirkie](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/smirkie/32/158820_2.png) [@smirkie](https://community.smartthings.com/u/smirkie)\
**Post date:** [November 16, 2018, 6:00pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/8 "2018-11-16T18:00:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kevin](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kevin/32/142294_2.png) [@kevin](https://community.smartthings.com/u/kevin)\
**Post date:** [November 16, 2018, 6:07pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/9 "2018-11-16T18:07:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![denisshelston](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@denisshelston](https://community.smartthings.com/u/denisshelston)\
**Post date:** [November 16, 2018, 6:21pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/10 "2018-11-16T18:21:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bamarayne](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bamarayne/32/18206_2.png) [@bamarayne](https://community.smartthings.com/u/bamarayne)\
**Post date:** [November 17, 2018, 4:58am UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/11 "2018-11-17T04:58:52Z")

</div>

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.

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/3/5/35e8835bfe4982f493b1c4d6651f9a56cd943e91.png)

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/d/1/d1f12ba3d144bf9595848fa92f277b08cdf0ee2a.png)

---

<div class="post-metadata">

**Author:** ![pizzinini](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/pizzinini/32/279_2.png) [@pizzinini](https://community.smartthings.com/u/pizzinini)\
**Post date:** [November 17, 2018, 7:39pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/12 "2018-11-17T19:39:50Z")

</div>

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

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/3/0/301b497f404fe8aec685bf333efe874adea97932.png)

---

<div class="post-metadata">

**Author:** ![Bryantrichar](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bryantrichar](https://community.smartthings.com/u/Bryantrichar)\
**Post date:** [November 17, 2018, 7:50pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/13 "2018-11-17T19:50:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bamarayne](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bamarayne/32/18206_2.png) [@bamarayne](https://community.smartthings.com/u/bamarayne)\
**Post date:** [November 17, 2018, 8:03pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/14 "2018-11-17T20:03:01Z")

</div>

> [@Bryantrichar](#):
>
> Do you have a method of showing / controlling the current mode on the dashboard?

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.

---

<div class="post-metadata">

**Author:** ![Bryantrichar](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bryantrichar](https://community.smartthings.com/u/Bryantrichar)\
**Post date:** [November 17, 2018, 8:06pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/15 "2018-11-17T20:06:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bamarayne](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bamarayne/32/18206_2.png) [@bamarayne](https://community.smartthings.com/u/bamarayne)\
**Post date:** [November 17, 2018, 8:08pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/16 "2018-11-17T20:08:47Z")

</div>

> [@Bryantrichar](#):
>
> 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.

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

---

<div class="post-metadata">

**Author:** ![Bryantrichar](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bryantrichar](https://community.smartthings.com/u/Bryantrichar)\
**Post date:** [November 17, 2018, 8:12pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/17 "2018-11-17T20:12:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![BBoy486](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bboy486/32/96682_2.png) [@BBoy486](https://community.smartthings.com/u/BBoy486)\
**Post date:** [November 17, 2018, 8:25pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/18 "2018-11-17T20:25:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BBoy486](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bboy486/32/96682_2.png) [@BBoy486](https://community.smartthings.com/u/BBoy486)\
**Post date:** [November 17, 2018, 8:30pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/20 "2018-11-17T20:30:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bryantrichar](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bryantrichar](https://community.smartthings.com/u/Bryantrichar)\
**Post date:** [November 17, 2018, 8:46pm UTC](https://community.smartthings.com/t/echo-speaks-examples/142502/21 "2018-11-17T20:46:21Z")

</div>

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… 😊 I have taken over this thread with an unrelated topic. I’m going to create a new topic if I have any further questions.

[Next page](https://community.smartthings.com/t/echo-speaks-examples/142502.md?page=2)
