diff --git a/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy b/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy index 11a986c..3e9d99d 100644 --- a/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy +++ b/smartapps/dooglave/let-there-be-dark.src/let-there-be-dark.groovy @@ -29,7 +29,7 @@ def installed() { def updated() { unsubscribe() - subscribe(switch1, "switch.off", switchOffHandler) + subscribe(contact1, "contact", contactHandler) } def contactHandler(evt) {