Auto Lights by Motion with Voice Cancellation?


#1

I am new to WebCore and I am trying to make a piston that will automatically turn on lights based on a motion sensor. It will then keep the lights on in a room until motion is no longer detected at which time the lights will flash 2 times. If you are still in the room and don’t want the lights to go off I would like to add a virtual switch through alexa to keep the lights on (instead of walking around or waving arms to trigger motion sensor again). I am able to get most of the piston fucntioning except for the voice cancellation portion. Currently, I have to wait until the lights turn off and then active with Alexa which then does cancel the motion sensor trigger and keep the lights on. But what I would like to do is provide Alexa with the command right after the blinking warning which would then cancel the motion detection. Any way to do that? Current Piston below.

Thanks for the help in advance!


#2

Add your if vs is on/off right after the 15 second wait.


#3

Sorry, still really new to webcore. I do not understand what you mean. I should put an if statement after the 15 second wait before turning off?

Would there be anyway to show me an example of what you mean?


#4

I could add it to your piston but you cropped out the info at the top of the image.

If you click add a statement then select a condition just like you have before. This time however it will check the virtual switch is on or off


#5

Sorry, first time attempting to make a piston and post here on the forums. Great community available for support from what I can see so far!

Is this the portion you need?


#6

No worries. Click on the green photo icon below the piston window. It will generate an image. Use that image when uploading to anything. It is the best way to upload.


#7

I see. Thanks for the instructions. The proper upload of the piston should be below: