Question about Pistons


#1

So I just found out about webcore and I want to determine if its worth it for me to figure out how to get it set up and working.

From my understanding you can use IFTTT and webhooks to trigger certain conditions.

But what I really want to be able to do is use my google home to turn on a light or switch for x amount of time. In other words I want to be able to say (e.g.) “Ok google, turn on the ‘x’ for ‘y’ minutes”, where ‘x’ is the name of the light/switch and ‘y’ is any number I arbitrarily decide.

Is this possible to do using webcore? Or would I have to make a bunch of pistons for each combination of light/switch (‘x’ = heater, bottle warmer, bedroom light, living room light, etc) and duration (‘y’ = 1, 5, 10, 15, 30, 60, 120 mins, etc)?


#2

I am not a google home user. But with echo I have to write bunch of piston for the setup you mentioned. (with simulated switches etc)

but I’d love too see other people commenting on this post because now I got curious. :))))


#3

You can easily use a Simulated Dimmer Switch to send a variable from 1 to 100 to webCoRE using Google Home. I don’t have an example handy, but basically you can use the phrase, “OK Google, turn on the ‘SimDimmer’ at 30%.” The percent can be converted to minutes here in webCoRE.

If you need to go past 100 minutes, then you can make every percent equal 2 minutes. That will expand your range to 2-200.