projects
/
smartapps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update lighting-director.groovy
[smartapps.git]
/
official
/
smart-turn-it-on.groovy
diff --git
a/official/smart-turn-it-on.groovy
b/official/smart-turn-it-on.groovy
index 8e31d2aa2151523ca82460a731a7aa316f09cc34..6ade62a969df3befed09a3f1668ea5ef37a64e80 100755
(executable)
--- a/
official/smart-turn-it-on.groovy
+++ b/
official/smart-turn-it-on.groovy
@@
-56,7
+56,7
@@
def turnOn(){
log.debug "Start"
def dayCheck = dayOne.contains(new Date().format("EEE"))
def dayTwo = new Date().format("EEE");
log.debug "Start"
def dayCheck = dayOne.contains(new Date().format("EEE"))
def dayTwo = new Date().format("EEE");
- if(
dayCheck
){
+ if(
/*dayCheck*/true
){
def presenceTwo = presenceOne.latestValue("presence").contains("present")
if (presenceTwo) {
switchOne.on()
def presenceTwo = presenceOne.latestValue("presence").contains("present")
if (presenceTwo) {
switchOne.on()
@@
-70,4
+70,4
@@
log.debug "Start"
def turnOff() {
switchOne.off()
def turnOff() {
switchOne.off()
-}
\ No newline at end of file
+}