I edited my first post. Thanks for catching that!
WebCoRE asks a question, my voice response determines the action
I guess since Iâm using Echo Speaks, I need to find some way for the closest Echo to ask me the question.
@tonesto7, is there a way to determine which Echo is talking to me, so I can put that in a global variable for this piston?
I have not used that app, but no matter which Echo asks the question, you can speak the answer to any Alexa in your house and it will work!!
Oh, I knowâŚbut if Iâm using this piston in the bedroom, I donât want the question to come from another room, nor from all the echos simultaneously, lol. Thatâs a little too âStepford Wivesâ for me.
[EDIT] Just realizedâŚit would be hilarious to have Alexa ask random questions at random times:
"Hello, can I talk to you about Jesus today?
âYou know what sounds good right now? Pizza. Would you like yours with pineapple?â
âWould you like to hear the value of Pi to the last decimal place?â
I might incorporate this into my âGarbage to the Streetâ reminder piston.
WebCoRE asking me, âHave you taken the garbage to the street yet?â, and me responding with, âAlexa yesâ would stop the remaining notifications.
orâŚ
For those with an unpredictable work schedule, the good night piston can ask if I work the following day⌠and do different things depending on my answerâŚ
orâŚ
Staying in the bathroom just a little too long, webCoRE could ask me if I need helpâŚ
(it could bring a laugh, or it could save a life, depending on the answer & the piston)
Man⌠The possibilities are endless!!
For those people really pressed for time, donât forget that you can actually knock one syllable off the phrase by changing Alexaâs name to Echo. (thereby saving yourself 25%, LOL)
Very cool! Thanks for sharing. Will gets it later with Echo Speaks, when the family wakes up.
I agree, getting this setup with Echo Speaks and incorporating a piston to where only a certain Echo talks when I am in the room will be really slick!
Feel free to keep sharing ideas and concepts, love the creative thinking.
I donât yet know exactly how I will use this very cool function (thanks for it!).
However, I do imagine circumstances under which it might or might not be used.
Imagine I have indoor and outdoor lights plugged into smart plugs, in an Alexa group called âChristmasâ. That group turns off automatically at 11:30pm.
I would not want any questions emanating from Alexa at that hour; the presumption is that itâs being turned off automatically at that time because we have all fallen asleep.
But what if I tell Alexa at 10:05pm: âAlexa, turn off Christmasâ.
Itâs a fair assumption that if Iâm doing that, I might be going to bed.
So I would want it to a) know that I initiated the process with an Alexa voice command, and b) know that Iâm within a âgo to bedâ timeframe, so that it c) knows that it should therefore ask me âyou seem to be on your way to bed. Would you like the downstairs lights to be turned off?â
If there were some way to set a variable or something if a command comes from Alexa, that would be advantageous.
I love your line of thinking! This should be super easy to implement!!
If you turn off your Christmas lights by other methods besides Alexa, then I would use a Simulated Switch, that only Alexa turns on or off. WebCoRE can monitor that switch, and actually turn off (or on) the lights when the SimSwitch changes. This wonât stop you from changing the Christmas lights by other means, but whenever you use Alexa, a specific piston would run. That would also be the piston to add the few lines of code above to ask the âAre you going to bed?â question.
I donât remember who it was I was talking to the other day, but someone was trying to make sure their dogs were fed twice a day, by using the door contact sensor on the pantry. In a case like this, we could program webCoRE to ask, âAre you feeding the dogs now?â whenever the pantry was opened during a certain time period⌠If we reply âYesâ, then subsequent pantry opens would not ask the question until the next meal time slot.
Just throwing out ideasâŚ
Weird. I could only get it to work through relay.
Hereâs an idea. I know someone who often forgets to take their medicine in the morning. At a certain time, this program can ask them if theyâve taken their medicine. If yes, then it stops. If no, then a friendly reminder. If thereâs no response, it should wait and ask again until a response is given, or perhaps send a text message to their phone.
Oooh, I just thought of something. You donât need the sim switch to actually turn off the lights; you only need it to be included in the Alexa group called âChristmasâ.
The sim switch defaults to ON. If it ever goes Off, then it resets to ON in ten seconds or so. Ready for re-use.
Have an automation in ST that turns off those outlets at 11:30pm⌠the sim switch is not included in that automation.
Have the sim switch be turned off ONLY by the Alexa group. When it turns off, it triggers the question.
@Glen_King, I donât get what youâre saying there.
Iâm curiousâŚwhatâs the point of the reset switch piston again? Why not just turn both switches off at the end of the main piston?
This could work, as long as you are only using Alexa to turn the lights Off (and not on), and you have programming in place to reset that SimSwitch.
EDIT
Oh I get it now. If you use Alexa to turn on the Christmas lights, then you obviously are not going to bed, so no need for the question. Brilliant!
@Glen_King, I donât get what youâre saying there.
Iâm curiousâŚwhatâs the point of the reset switch piston again? Why not just turn both switches off at the end of the main piston?
The value of this sim switch arrangement is that I might not be always turning all those lights on/off via the Christmas group. I might turn them on manually⌠if I do that, then the sim switch never gets flipped back to âonâ. If it never gets flipped back to âonâ, then ST would not know the command to turn them off came from Alexa. And therefore would never engage the âinteractiveâ questions.
Turning off the sim switch is the signal to Webcore to initiate the question.
It canât do that if the switch is already off.
EDIT: I created the âAlexaSimSwitchâ, and included it in all of my Alexa groups except music groups.
So now any time I ask for action on a group of devices, ST/Webcore can be flagged for a follow up.
since weâre using Alexa for this piston is there any reason why we wouldnât use the Alexa virtual device creator versus creating it device in the in the IDE?
Feel free to try, but I wonât be able to troubleshoot that with you here. I have heard from multiple sources that creating Simulated Switches using third party apps is less than reliable.
(Thankfully, it only takes 2 minutes using the official IDE)