Activate / Deactivate pistons with voice control

alexa

#1

Is it possible to Activate and Deactivate a piston via voice control with Alexa.

My situation: I am using a piston to control my fans. There are times I would like to disable the automation and just turn the fans off. Currently if I turn the fans off using Alexa, the automation immediately takes over and the moment motion is detected the fans come on again. I can turn the automation off via my mobile device but my preference would be to say, for instance, “Alexa, disable piston one”

Thanks,


#2

You can have a piston which pauses or resumes another piston, so if you create a new one with an Alexa trigger it should be possible.

I use a piston to trigger another piston to get timings setup correctly.


#3

Just have the Piston trigger based on a virtual switch and control the switch via Alexa.


#4

This is totally doable. You just need one Simulated Switch (let’s call it ‘Auto Fan’)

Then, you make a new piston with only two commands:

IF Auto Fan turns off
Then Pause piston "Home \ webCoRE \ PistonYouWantPaused
Wait 1 second
Turn off Fan
End IF

IF Auto Fan turns on
Then Resume piston "Home \ webCoRE \ PistonYouWantResumed
End IF

Then you will be able to say, “Alexa, turn off auto fan” to have your normal piston ignored.