Update smart-nightlight.groovy
[smartapps.git] / official / smart-nightlight.groovy
index ed407e768548c0b8c6b55af13e925efdb39c6bd8..af86f9d539c83470d416b1600763d141f447bf24 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()