From 58fdad7c46fda2d1720ba5611467f677b0567a28 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Fri, 9 Aug 2019 13:05:52 -0700 Subject: [PATCH] Update smart-nightlight.groovy --- official/smart-nightlight.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/official/smart-nightlight.groovy b/official/smart-nightlight.groovy index ed407e7..af86f9d 100755 --- a/official/smart-nightlight.groovy +++ b/official/smart-nightlight.groovy @@ -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() -- 2.34.1