1) Give a description of the problem
turn lights on when it is dark outside.
2) What is the expected behaviour?
If it is dark outside, if a virtual switch “livingroommotionsensor” is on, and motion is detected, the lights should turn on and turn off if there is no motion.
If the lights are turned on with a light switch or google home manually while it is not dark outside, the lights should turn off if there is no motion in the room and “livingroommotionsensor” is on.
The purpose of turning “livingroommotionsensor” off is to keep the lights on when someone is in the room rather motionless, maybe doing homework. It will also keep the lights off when watching a movie for instance and you dont want to trigger the motion lights.
3) What is happening/not happening?
I think this might be working somewhat now. I’m hoping others can review my work and provide suggestions to make the piston more efficient.
**4) Post a Green Snapshot of the piston