1) Give a description of the problem
I do not know how to write in an EXCPET if switch is used
2) What is the expected behaviour?
When motion is detected, light will switch on
When no motion is detected, light will switch off
EXCEPT
When switch is used, light will not turn off automatically
3) What is happening/not happening?
**4) Post a Green Snapshot of the piston!
5) Attach logs after turning logging level to Full
no logs, will not run