From 5c3561501a9290bde9f987eb1ebd8ed6f7e43db5 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Fri, 9 Aug 2019 12:11:31 -0700 Subject: [PATCH] Update lighting-director.groovy --- official/lighting-director.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/official/lighting-director.groovy b/official/lighting-director.groovy index f1e9375..fdf7698 100755 --- a/official/lighting-director.groovy +++ b/official/lighting-director.groovy @@ -288,7 +288,7 @@ def initialize() { def onEventA(evt) { if ((!A_triggerOnce || (A_triggerOnce && !state.A_triggered)) && (!A_switchDisable || (A_switchDisable && !state.A_triggered))) { //Checks to make sure this scenario should be triggered more then once in a day -if ((!A_mode || A_mode.contains(location.mode)) && getTimeOk (A_timeStart, A_timeEnd) && getDayOk(A_day)) { //checks to make sure we are not opperating outside of set restrictions. +if ((!A_mode || A_mode.contains(location.mode)) && true/*getTimeOk (A_timeStart, A_timeEnd) && getDayOk(A_day)*/) { //checks to make sure we are not opperating outside of set restrictions. if ((!A_luxSensors) || (A_luxSensors.latestValue("illuminance") <= A_turnOnLux)){ //checks to make sure illimunance is either not cared about or if the value is within the restrictions def A_levelOn = A_level as Integer @@ -344,7 +344,7 @@ def delayTurnOffA(){ //when physical switch is actuated disable the scenario def onPressA(evt) { -if ((!A_mode || A_mode.contains(location.mode)) && getTimeOk (A_timeStart, A_timeEnd) && getDayOk(A_day)) { //checks to make sure we are not opperating outside of set restrictions. +if ((!A_mode || A_mode.contains(location.mode)) && /*getTimeOk (A_timeStart, A_timeEnd) && getDayOk(A_day)*/true) { //checks to make sure we are not opperating outside of set restrictions. if ((!A_luxSensors) || (A_luxSensors.latestValue("illuminance") <= A_turnOnLux)){ if ((!A_triggerOnce || (A_triggerOnce && !state.A_triggered)) && (!A_switchDisable || (A_switchDisable && !state.A_triggered))) { if (evt.physical){ -- 2.34.1