Update smart-nightlight.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Fri, 9 Aug 2019 20:05:52 +0000 (13:05 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Fri, 9 Aug 2019 20:05:52 +0000 (13:05 -0700)
official/smart-nightlight.groovy

index ed407e7..af86f9d 100755 (executable)
@@ -67,7 +67,7 @@ def initialize() {
                subscribe(lightSensor, "illuminance", illuminanceHandler, [filterEvents: false])
        }
        else {
-               subscribe(location, "position", locationPositionChange)
+               subscribe(location, "mode", locationPositionChange)
                subscribe(location, "sunriseTime", sunriseSunsetTimeHandler)
                subscribe(location, "sunsetTime", sunriseSunsetTimeHandler)
                //astroCheck()