From: Seyed Amir Hossein Aqajari Date: Fri, 9 Aug 2019 20:05:52 +0000 (-0700) Subject: Update smart-nightlight.groovy X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=commitdiff_plain;h=58fdad7c46fda2d1720ba5611467f677b0567a28 Update smart-nightlight.groovy --- 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()