Only when switched on via webCoRE


#1

Hey peeps,

In the second IF in this piston, I want the light to go off ONLY if the switch was turned on via webCoRE, and not by being physically turned on by a person. Is this possible?


#2

My experience would be best summed up by two words… Not reliably.

Trying to differentiate between physical interaction and programmatic interaction of a physical switch is something that I tried for quite some time but eventually gave up on. It just never produced consistent results.


#3

Ya… it’s a pain in the ass for sure. I’ve tried so many combinations. I’m just trying to get it that the second part of the piston doesn’t run when someone physically turns on the light, since the conditions would now be met (sensor > no activity + light ON). It always turns off the light after sensor motion becomes INACTIVE.


#4

Going to try this when I get home.
A variable named programmedOn as a toggle.


#5

Well, I suppose that will work fine. Just as long as you can turn the light switch on before the motion sensor sees you… :slight_smile: