Piston with motion sensing not working


#1

Hi, I’m trying to get a piston for a motion sensor to trigger the light on the restroom, but with time restrictions. It had been working fine but suddenly it doesn’t triggers the switch no more when motion is detected, at least today friday.

Any inputs on how the statements might be cancelling each other?

Thanks!


#2

Well the first issue I see is that none of the motion sensor conditions are triggers. I.e., this piston does not seem to subscribe to the motion sensor (and hence will not wake up when the motion sensor changes.)

What did you have before that was working? I don’t see how this ever worked for you. (It only seems to wake up at certain times.)


#3

Yeah…none of the events in this piston will actually do anything because it only executes at 3pm on Fridays. There are some really great motion light examples up in the Example Pistons. I recommend scraping this one and starting with one of those.


#4

setting the sensor to “changes to” solved it!!
thanks!