Echo Speaks Examples


(Tanya Sawrie) #183

Doesn’t work for me (as I am listening to the same first song AGAIN at bedtime).
Does it have to be a playlist of my own? I’m playing a “mood” playlist from Spotify


(Jason) #184

In my testing I’ve found that if you can do something by voice with a single command, then you can also do it within the search string in Echo Speaks. With Amazon music you can say “shuffle my x playlist” and it will start the playlist and shuffle it. Google tells me that with Spotify you need to break it into two separate voice commands, so putting in the search string probably won’t work. I’m not sure about the other music services.

I’d love to be able to turn on loop mode with Echo Speaks, but unfortunately that also requires two separate voice commands.


(David Evans) #185

Can i query if there is a way to launch a skill via an Echo Speaks Piston?
Our local radio station did the wise thing of blocking itself from TuneIn etc and having its own skill.

I want to use it as an Alarm clock Piston.

Thanks


(Anthony S.) #186

Not that i’ve discovered yet


(Phil Panfili) #187

I probably know the answer to this, but am having a hard time finding an example. Is there a way to have Webcore respond to only the Echo that was asked the question?

Thanks in advance.


(David Evans) #188

No worries!

tonesto7
Anthony S.
Community Master

    January 15

Davy932:
Can i query if there is a way to launch a skill via an Echo Speaks Piston?

Not that i’ve discovered yet


(Tony Fleisher) #189

With the most recent update, this should be possible.


(Jean May Jr) #190


(Glen King) #191

Well now. That gets us halfway to being able to utilize Echo as presence.

Think on it from the perspective of the Room Manager smartapp. If someone spoke to a particular Echo in the past minute, then we can say the room in which that Echo resides is occupied. And if there have been multiple interactions with that Echo within X minutes, then the room is engaged.


(Jason "The Enabler" as deemed so by @Smart) #192

Ok, am I understanding this right… basically, you want to be able to ask an Echo what was the last thing said on any other echo, and to be able to ask an echo what was the last thing said to an echo?

If that is right, selecting your Echo Speaks devices in EchoSistant you can do this.

Is that what you’re wanting?


(Glen King) #193

Nope. I just want to store which Echo device was last spoken to. Store it as a global variable or something.

Then perhaps have a piston (I do not like global variables themselves to be triggers for action, I think that’s bad programming) check what’s stored there, and depending on what it finds mark Room X or Room Y as ‘occupied’. I dunno, I’m just thinking out loud. Perhaps it’s possible for a piston to simply press a Room Manager button based on which Echo was last spoken to…


(Jason "The Enabler" as deemed so by @Smart) #194

ahhh, gotcha…

it’s is possible to toggle the rooms manager buttons… I also do that in a version (non-public) of EchoSistant… lol… I can ask if a room is occupied or not…


(Tony Fleisher) #195

interesting ideas… Would adding lastSpokenToTime be a useful addition?


(Doug Newell) #196

Need a little help on a piston I have for weather alerts using echo speaks. The piston seems to be working properly as I look over the logs. When an alert is issued I am hearing the current event value from my weather station but I am not hearing the weather alert message being announced even though the speak command was issued in the logs. Any help would be great there might be something I am totally over looking and thought a fresh set of eyes might help.

Version:1.0 StartHTML:000000233 EndHTML:000519258 StartFragment:000456407 EndFragment:000519161 StartSelection:000456521 EndSelection:000519144 SourceURL:https://dashboard.webcore.co/piston/:b1188340d058ce9edaff8e22ea58b840:

1‎/‎15‎/‎2019‎ ‎9‎:‎34‎:‎01‎ ‎PM +83ms
+1ms ╔Received event [Newell’s Home].time = 1547609642225 with a delay of -1143ms
+178ms ║RunTime Analysis CS > 69ms > PS > 80ms > PE > 29ms > CE
+181ms ║Runtime (44490 bytes) successfully initialized in 80ms (v0.3.109.20181207) (179ms)
+182ms ║╔Execution stage started
+247ms ║║Comparison (time) 77641307 is_between (time) 20700000 … (time) 84600000 = true (18ms)
+249ms ║║Time restriction check passed
+252ms ║║Condition #55 evaluated true (28ms)
+253ms ║║Cancelling statement #55’s schedules…
+264ms ║║Requesting time schedule wake up at Tue, Jan 15 2019 @ 11:30:00 PM CST
+268ms ║║Condition group #48 evaluated true (state did not change) (45ms)
+273ms ║║Cancelling statement #49’s schedules…
+371ms ║║Executed physical command [Echo - Bedroom Echo Spot].speak(
+371ms ║║…Dense fog advisory in effect until 9 am CST Wednesday…
+371ms ║║The National Weather Service in Kansas City/Pleasant Hill has
+371ms ║║issued a dense fog advisory, which is in effect until 9 am CST
+371ms ║║Wednesday.
+371ms ║║* Visibility…visibility will drop to a quarter mile or less at
+372ms ║║ times through the advisory area.
+372ms ║║* Impacts…limited visibilities will make travel difficult.
+372ms ║║ Temperatures will also fall below freezing across the area
+372ms ║║ tonight, allowing freezing fog to develop. This will make
+372ms ║║ surfaces slick including bridges…overpasses and untreated
+373ms ║║ roadways. Use caution when driving.
+373ms ║║Precautionary/preparedness actions…
+373ms ║║A dense fog advisory means visibilities will frequently be
+373ms ║║reduced to less than one quarter mile. If driving, slow down, use
+373ms ║║your headlights, and leave plenty of distance ahead of you.
+374ms ║║
+376ms ║║Executed [Echo - Bedroom Echo Spot].speak (93ms)
+381ms ║║Cancelling statement #50’s schedules…
+420ms ║║Executed physical command [Echo - Upstairs echo dot].speak(
+420ms ║║…Dense fog advisory in effect until 9 am CST Wednesday…
+421ms ║║The National Weather Service in Kansas City/Pleasant Hill has
+421ms ║║issued a dense fog advisory, which is in effect until 9 am CST
+421ms ║║Wednesday.
+421ms ║║* Visibility…visibility will drop to a quarter mile or less at
+421ms ║║ times through the advisory area.
+421ms ║║* Impacts…limited visibilities will make travel difficult.
+422ms ║║ Temperatures will also fall below freezing across the area
+422ms ║║ tonight, allowing freezing fog to develop. This will make
+422ms ║║ surfaces slick including bridges…overpasses and untreated
+422ms ║║ roadways. Use caution when driving.
+422ms ║║Precautionary/preparedness actions…
+422ms ║║A dense fog advisory means visibilities will frequently be
+423ms ║║reduced to less than one quarter mile. If driving, slow down, use
+423ms ║║your headlights, and leave plenty of distance ahead of you.
+423ms ║║
+425ms ║║Executed [Echo - Upstairs echo dot].speak (34ms)
+429ms ║║Cancelling statement #51’s schedules…
+465ms ║║Executed physical command [Echo - Downstairs echo dot].speak(
+465ms ║║…Dense fog advisory in effect until 9 am CST Wednesday…
+465ms ║║The National Weather Service in Kansas City/Pleasant Hill has
+466ms ║║issued a dense fog advisory, which is in effect until 9 am CST
+466ms ║║Wednesday.
+466ms ║║* Visibility…visibility will drop to a quarter mile or less at
+466ms ║║ times through the advisory area.
+466ms ║║* Impacts…limited visibilities will make travel difficult.
+467ms ║║ Temperatures will also fall below freezing across the area
+467ms ║║ tonight, allowing freezing fog to develop. This will make
+467ms ║║ surfaces slick including bridges…overpasses and untreated
+467ms ║║ roadways. Use caution when driving.
+467ms ║║Precautionary/preparedness actions…
+468ms ║║A dense fog advisory means visibilities will frequently be
+468ms ║║reduced to less than one quarter mile. If driving, slow down, use
+468ms ║║your headlights, and leave plenty of distance ahead of you.
+468ms ║║
+470ms ║║Executed [Echo - Downstairs echo dot].speak (34ms)
+475ms ║║Cancelling statement #52’s schedules…
+512ms ║║Executed physical command [Echo - Front Garage echo dot].speak(
+512ms ║║…Dense fog advisory in effect until 9 am CST Wednesday…
+512ms ║║The National Weather Service in Kansas City/Pleasant Hill has
+512ms ║║issued a dense fog advisory, which is in effect until 9 am CST
+512ms ║║Wednesday.
+512ms ║║* Visibility…visibility will drop to a quarter mile or less at
+513ms ║║ times through the advisory area.
+513ms ║║* Impacts…limited visibilities will make travel difficult.
+513ms ║║ Temperatures will also fall below freezing across the area
+513ms ║║ tonight, allowing freezing fog to develop. This will make
+513ms ║║ surfaces slick including bridges…overpasses and untreated
+513ms ║║ roadways. Use caution when driving.
+514ms ║║Precautionary/preparedness actions…
+514ms ║║A dense fog advisory means visibilities will frequently be
+514ms ║║reduced to less than one quarter mile. If driving, slow down, use
+514ms ║║your headlights, and leave plenty of distance ahead of you.
+514ms ║║
+516ms ║║Executed [Echo - Front Garage echo dot].speak (34ms)
+520ms ║║Cancelling statement #53’s schedules…
+555ms ║║Executed physical command [Echo - Back Garage echo dot].speak(
+556ms ║║…Dense fog advisory in effect until 9 am CST Wednesday…
+556ms ║║The National Weather Service in Kansas City/Pleasant Hill has
+556ms ║║issued a dense fog advisory, which is in effect until 9 am CST
+556ms ║║Wednesday.
+556ms ║║* Visibility…visibility will drop to a quarter mile or less at
+556ms ║║ times through the advisory area.
+557ms ║║* Impacts…limited visibilities will make travel difficult.
+557ms ║║ Temperatures will also fall below freezing across the area
+557ms ║║ tonight, allowing freezing fog to develop. This will make
+557ms ║║ surfaces slick including bridges…overpasses and untreated
+557ms ║║ roadways. Use caution when driving.
+557ms ║║Precautionary/preparedness actions…
+558ms ║║A dense fog advisory means visibilities will frequently be
+558ms ║║reduced to less than one quarter mile. If driving, slow down, use
+558ms ║║your headlights, and leave plenty of distance ahead of you.
+558ms ║║
+559ms ║║Executed [Echo - Back Garage echo dot].speak (33ms)
+565ms ║╚Execution stage complete. (382ms)
+567ms ║Setting up scheduled job for Tue, Jan 15 2019 @ 11:30:00 PM CST (in 6958.351s)
+575ms ╚Event processed successfully (575ms)
‎1‎/‎15‎/‎2019‎ ‎9‎:‎33‎:‎50‎ ‎PM +844ms
+1ms ╔Received event [Weather Station].alert = Dense Fog Advisory until WED 9:00 AM CST with a delay of 84ms
+103ms ║RunTime Analysis CS > 27ms > PS > 55ms > PE > 22ms > CE
+106ms ║Runtime (44310 bytes) successfully initialized in 55ms (v0.3.109.20181207) (104ms)
+107ms ║╔Execution stage started
+120ms ║║Comparison (dynamic) Dense Fog Advisory until WED 9:00 AM CST is_not (string) Dense Fog Advisory from MON 11:00 PM CST until TUE 9:00 AM CST = true (2ms)
+122ms ║║Condition #19 evaluated true (7ms)
+128ms ║║Comparison (dynamic) Dense Fog Advisory until WED 9:00 AM CST is_not (string) No current alerts = true (2ms)
+130ms ║║Condition #26 evaluated true (7ms)
+131ms ║║Condition group #16 evaluated true (state did not change) (16ms)
+133ms ║║Cancelling statement #16’s schedules…
+139ms ║║Executed virtual command setVariable (3ms)
+146ms ║║Calculating (string) Hub received + (string) Dense Fog Advisory until WED 9:00 AM CST >> (string) Hub received Dense Fog Advisory until WED 9:00 AM CST
+171ms ║║Executed virtual command sendPushNotification (21ms)
+414ms ║║Executed virtual command setVariable (3ms)
+421ms ║║Calculating (string) Last message sent was + (string) Dense Fog Advisory until WED 9:00 AM CST >> (string) Last message sent was Dense Fog Advisory until WED 9:00 AM CST
+425ms ║║Executed virtual command setState (1ms)
+429ms ║║Condition group #27 evaluated true (state did not change) (0ms)
+432ms ║║Cancelling statement #21’s schedules…
+1025ms ║║Executed physical command [Echo - Bedroom Echo Spot].speak([Dense Fog Advisory until WED 9:00 AM CST]) (586ms)
+1027ms ║║Executed [Echo - Bedroom Echo Spot].speak (588ms)
+1030ms ║║Cancelling statement #29’s schedules…
+1106ms ║║Executed physical command [Echo - Upstairs echo dot].speak([Dense Fog Advisory until WED 9:00 AM CST]) (68ms)
+1108ms ║║Executed [Echo - Upstairs echo dot].speak (70ms)
+1111ms ║║Cancelling statement #33’s schedules…
+1204ms ║║Executed physical command [Echo - Downstairs echo dot].speak([Dense Fog Advisory until WED 9:00 AM CST]) (85ms)
+1205ms ║║Executed [Echo - Downstairs echo dot].speak (87ms)
+1208ms ║║Cancelling statement #37’s schedules…
+1283ms ║║Executed physical command [Echo - Front Garage echo dot].speak([Dense Fog Advisory until WED 9:00 AM CST]) (67ms)
+1284ms ║║Executed [Echo - Front Garage echo dot].speak (70ms)
+1288ms ║║Cancelling statement #41’s schedules…
+1369ms ║║Executed physical command [Echo - Back Garage echo dot].speak([Dense Fog Advisory until WED 9:00 AM CST]) (74ms)
+1370ms ║║Executed [Echo - Back Garage echo dot].speak (76ms)
+1374ms ║║Cancelling statement #46’s schedules…
+1379ms ║║Executed virtual command wait (0ms)
+1380ms ║║Requesting a wake up for Tue, Jan 15 2019 @ 9:34:02 PM CST (in 10.0s)
+1388ms ║╚Execution stage complete. (1281ms)
+1391ms ║Setting up scheduled job for Tue, Jan 15 2019 @ 9:34:02 PM CST (in 9.991s), with 1 more job pending
+1402ms ╚Event processed successfully (1403ms


(Glen King) #197

Tony, lastSpokenToTime would be fantastic.


(Anthony S.) #198

You got it… Please open up an issue as Feature request on Github


(Dmoses1969) #199

Can you share how you set this up?

What are you using for “temperature sensor 1”,? Not sure where your getting the severe weather alerts from.

Thanks


(Doug Newell) #200

the smart weather station from my smartthings hub provides the initial alert and triggers the piston to run. The alert message is pulled from the webcore weather data $weather.alerts.alerts.message which returns the full weather alert message from the NWS.

https://wiki.webcore.co/Weather


(Anthony S.) #201

how do you suggest I format the time? Just a UNIX timestamp?


(Jason) #202

Agreed!

Not sure about Glen, but that works for me.