Lighting Detector App: Stop Triggering if physical switch is turned off