Turn ON & OFF using alexa/GH


#1

Need some help in designing piston
I want the bulb #1 to be ON when there is motion and turn off when there is no motion. This is easy to design.
But if I turn off the bulb using ST app or turn it off using alexa/GH, then bulb # 1 should not turn on even if there is motion for that day. How can I achieve this?


#2

You can’t exactly.
First there is no direct Alexa or GH integration to WC.
But either way it doesn’t leave a footprint on the device of what programmatic method turned it on.

WC can monitor physical and programmatic actions. It doesn’t break down programmatic by what app fired the action.

===========

Now there is a way but it’s a little round about.

You could conceivably make this work with a virtual switch…
Create virtual switch (Light override)

Then, have webcore then on/off (light) based on motion under an “only when” statement
Only when: (Light override) is ON.

So you use the app or Alexa to turn off (Light override) then the motion section of the piston won’t do anything until you turn (Light override) back on.
If you want this to reset daily, as a timer, run daily (at say 12:05am) that turns on (Light override)


#3

Ya I thought of creating a virtual switch but wanted to know of it records the physical or programmatic action.
My better half gets confused by virtual switches so I try to stay away from it as much as I can :smile:


#4

Name the light switch something weird, or forget the real switch from Alexa. This way Alexa interacts with the virtual switch and unless you’re doing it in ST app for all intents and purposes Alexa only interacts with virtual switch named what makes sense


#5

I will give it a try. Thanks for the suggestion.


#6

hope it helps. i’ve got some elements of the above suggestions in my setup and it works well.


#7

This logic is very similar to what I have currently.

webcore turns on/off (light) based on motion from 6-9pm
if no motion then light turns off only between 6-9pm

After 9pm, mostly TVmode (virtualswitch) is on in which all bulbs are dimmed so even if there is motion, nothing happens.

Thanks again for ur help.


#8

#9

i am trying to make the same project, using ifttt/wc. can you provide any example pistons? thanks.