Update garage-switch.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Thu, 8 Aug 2019 19:02:46 +0000 (12:02 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Thu, 8 Aug 2019 19:02:46 +0000 (12:02 -0700)
third-party/garage-switch.groovy

index 0708b91..30191fb 100755 (executable)
@@ -51,7 +51,7 @@ def updated() {
 
 def initialize() {
     subscribe(theSwitch, "switch", switchHit)
 
 def initialize() {
     subscribe(theSwitch, "switch", switchHit)
-    subscribe(theSensor, "status", statusChanged)
+    subscribe(theSensor, "threeAxis", statusChanged)
 }
 
 def switchHit(evt) {
 }
 
 def switchHit(evt) {