Looking for some advice on building a piston with google assistant, ifttt and webcore

ifttt

#1

Hey I’m the webcore user who simply copies other pistons and modifies but not knowledgable enough to create advanced sequences on my own. So thanks to all you advanced users for making my webcore experiences very easy thus far!

Having said that I’m having trouble attempting to start my steam shower every morning. I currently have a google assistant command via IFTT “Start Steam” which sends a webhooks web request to my computer which then executes Keyboard Maestro to open chrome and turn on my steam shower. This all works fine for the most part but I would like to say to google (night before) “Schedule my steam shower for 7AM”. I haven’t begun a piston but want google assistant/ifttt to trigger a web request to start my piston but not execute until the given time, which then initiates my keyboard maestro. I would like to know how I can use the Number or text ingredients to carry over as variables in my webcore piston - ideally time. Honestly my head is spinning to even conceptualize as I’m a very basic user, but any suggestions on how to migrate ingredients to webcore (and how to translate them to time) would be helpful. My apologies for not having screenshots as I haven’t gotten that far.

Hayes1699


#2

I created a basic piston as a start but again I’d like IFTTT ingredients to define the time as opposed to preset times…


#3

Hi there,
I’m not sure if I’ll be able to help but I can try (never used keyboard maestro or google. Echo user)

  • How do you turn ON your steam shower in real life thru chrome?
  • Does google have a capacity to use simulated switches? Like Alexa does.
    The piston part is easy but I’m trying to understand your hardware part.

ps: If that GET link is an actual (not partial) link I’d say change that picture ASAP:))))
this forum is full of wonderful people but posts are open to non-member public eye.


#4

Thanks for the response. Yes that link is partial and thanks for looking out. To answer your questions - my steam controller box directly connects to my router and I can access the controls via local ip. Kohler has a basic web interface to control the steam and all shower heads. Basically I have keyboard maestro open chrome to my local ip, find “start” and then click mouse. Yes google can activate virtual switches that I create in SmartThings.


#5

So my suggestion would be,

Create a piston that starts the shower at 7.00am every morning BUT
only if the variable is TRUE.

Every day at 7.00am
   IF @myvariableforsteam is TRUE
   Then 
   Make a get request to (your link here)
   Wait 3 minutes
   Set @myvariableforsteam to FALSE

So this piston will execute everymorning BUT will stop IF the variable is FALSE…
The variable will be false unless you give google your command…
Your command to google will turn a virtual switch ON and changing that to ON, will change your global variable to TRUE.

IF my virtual switch changes to ON
   Then
   Set variable @myvariableforsteam to TRUE

If you give the command at night - or when ever - the variable will change to TRUE… nothing will happen until 7.00 in the morning…
And 7.00 in the morning when your first piston is executed it will see the variable as TRUE and will continue to MAKE a GET
and the rest you know:))))

let me know if you have any questions…


#6

Thanks much for this! I understand the concept… implementing with google may be another story. Is this example a good representation of your suggestion?


#7

Looks good to me;))
The only thing is TCP (Task Cancellation Policy)

the trigger is IF Dimmer 6 CHANGES TO ON… as soon as “Changes to” part is over - which is momentarily - the piston will stop and WAIT will be cancelled.
Click on WITH (line 35)
You will see a settings wheel at the buttom - click
Task Cancellation Policy - click
NEVER CANCEL TASK - Choose

An N with a circle around it should appear next to WITH (line 35)

Now the piston will continue counting down 10 second, even the trigger is no llonger TRUE…