Making voice announcements & controlling Amazon Alexa Echo


#65

Thank you

Just to clarify, your input & perspective is valuable, and I appreciate you mentioning alternatives. I am just trying to keep discussions in their respective thread.


#66

oops…meant to post this elsewhere…


#67

You don’t like this new smartapp/handler setup? I know it’s not perfect and hate depending on third party services like Heroku but as long as @tonesto7 has a method of keeping people informed as to when there’s updates it should work ok. webCoRE and Big Talker have interesting methods where they’ll actually tell you when there’s available updates.

Additionally this is a huge leap and think he deserves lots of credit - this setup can do many things that Alexa routines can’t do alone. Another thing that you yourself pointed out was the need to play dynamic announcements using such things as variables that Alexa routines can’t do because you have to specify preset messages - Echo Speaks handles that task.


#68

Dunno why you’re calling me out on this - I’m an instant fan of Echo Speaks, and thought my earlier posts made that clear. While the third party service may be less than optimal from a logistic standpoint, I think it’s a minor quibble.


#69

My apologies - comment was directed to @WCmore the original poster.


#70

I agree with you @GRClark, we definitely need innovative thinking, so in that sense, updates are good. My real hesitation is because when there are three separate companies (on separate payrolls), then each update will potentially break the other two apps.

What I like most about the method in the first post here is it does not rely on any particular code to function. It is entirely based on the device receiving a notification. (which I cannot imagine ever being dropped, unless Samsung goes bankrupt)

In a way, the Tasker method here is kind of acting like a Device Handler, but it doesn’t rely on any underlying code to function. If a notification comes in with that special symbol, it reads it outloud.

I wish I could package it to save others the initial 30 minute setup time, but each device has different voices and many people are using different versions of SmartThings, so that becomes tricky.

I can say thought that there have been dozens of updates to both Alexa, ST & webCoRE since I set this up, and no changes were required on my end. My voice announcements just kept right on plugging away.

I believe that the time spent on the initial setup is time well spent.


Side note:
My next expansion on this project will be using webCoRE to ask a question via speaker, and depending on my verbal reply, do different things… Stay tuned


Edit:
Here is a link to that project. It actually turned out quite good.


#71

That last part sounds really interesting. That’s the one thing left that I’m hoping for - passing variables to SmartThings/webCoRE via Alexa. As for your method - I’m sure it’s great - not knocking it at all, but being an iOS user I don’t have as much access to Tasker. I’ve got it on a Fire tablet but unfamiliar with Android not sure how to take full advantage and primarily use AutomateIt as its easier to figure out. It’s too bad too because I paid for full version and there’s so many plugins available.


#72

I have helped others set it up on a Fire tablet. As long as the device receives notifications from ST, it could work for you.

For the record, Tasker is great at passing variables to webCoRE. I often use Alexa to trigger a Tasker profile, which gathers variables, and then automatically send it to webCoRE for processing.

IE:
Alexa, how much battery is on my phone?

Spoken response:
Your phone is currently at 48% battery life, with an estimated 8.1 hours remaining.


#73

Ok then I’m already in trouble - ever since migrating to Samsung account I’m unable to log into SmartThings app.


#74

I confess. I am still using the SmartThings Classic app.
I heard too many issues with the updated app.


#75

Same here. In no way am I looking forward to using the new app.


#76

IFTTT works for this. I’ve been passing variables from Alexa to my Sony smart tv and my Denon AVR - and to Smartthings - using Alexa, IFTTT and Sharptools (tasker of course).


#77

Would you mind showing screenshots so I can see an example? Do you use webhooks in IFTTT? Do you need Tasker t do this? I’m on iOS.


#78

Hi,

Can’t post complete screenshots as they contain confidential information.
But yes, webhooks is the start. So one phrase is “Alexa, trigger window report”. IFTTT then taps the hook provided by my Webcore piston. That piston is scrubbed a bit, and shown below.

The PUSH notifications are intercepted by AutoNotification/Tasker on my control tablet, and played by that tablet.

The Speak commands are the new addition for EchoSpeaks.

Windows Livingroom, WindowsOffice etc are groups of windows defined as global variables.

it occurs to me that this was not really what you are asking.
What you are asking is about passing variables from webhooks itself. Here is one:

ht t p autoremotejoaomgcd dot appspot dot com/sendmessage?key=——————&sender=https://goo.gl/———&message=dinner jazz=:=

The personal keys are scrubbed. When the tablet receives this, AutoRemote parses “dinner jazz” and selects the correct zone and plays Pandora Bebop Jazz on that zone (it also sets the volume I want).

If I say “Alexa, play dinner music classical” it chooses a different station and sets a different volume.

To accomplish these things, the words ‘jazz’ and ‘classical’ are variables recognized in AutoRemote.
I think I have a piston somewhere getting a variable from webhooks. Will post it when I find it.


#79

@WCmore
It’s irrelevant but this topic excited me for another idea…

Can we do something like this:

at a certain time or after a trigger (motion sensor etc)
speaker says “Would you like me to play music?”
and i say “yes”
and music starts…

it could be used for lights, music etc

I would love to hear all the options. Get a Rbp3, buy this speaker, buy that switch, or simply buy amazon :joy:


#80

I am definitely working on that Ike. With Amazon’s current API, the best I can visualize is adding a word to our phrase and saying, “Alexa, yes” to trigger the second part.

I will post in a new thread when I get the bugs ironed out, and have a good step-by-step guide.

EDIT
New capabilities posted here.


By the way, I love your new avatar! Very fitting!


#81

thanks WCmore:)))

“Alexa yes” sound very good, i love it.
pls let me know when ever it’s ready… can’t wait to add this to my house.


#82

I’ve tried this on and off several times and can never get it to work with my GH. But when I saw your other post yesterday WebCoRE asks a question, my voice response determines the action I wanted to try again. The problem I’m having is that I am receiving the notification on my ST and it’s not being passed to my GH. I checked which apps I marked per the instructions above and found that I have several ST listed under apps. See screen shot. Any advice?


#83

I am a bit confused by your question. If the screenshot is from Tasker, and you are trying to make voice announcements, then checking all of them would be my choice. (although I wonder why it shows so many SmartThings app installed)

Can you send a screenshot from your Tasker Profile (left side) that says “AutoNotification Intercept Event Behavior”?

Mine looks like this:

a_ProfileEvent_30


It is also important to clarify that you need some kind of speaker connected to the Android. (via Bluetooth or 3.5mm wire) You can test this portion by picking up the Android, and doing anything that makes sound. (game, MP3, podcast etc) Does the sound come out of your large speaker?

For this method to work, every single sound your Android makes should be piped directly to your external speaker.


#84


Yes, I’ve checked all the Smartthings listed and yes a Bluetooth speaker is attached. I even hear the ST notification from the piston I’m trying to run. It seems the notification isn’t being intercepted