X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=official%2Fsmart-nightlight.groovy;h=af86f9d539c83470d416b1600763d141f447bf24;hb=58fdad7c46fda2d1720ba5611467f677b0567a28;hp=ed407e768548c0b8c6b55af13e925efdb39c6bd8;hpb=b855bfb060e0234677ebf7c06d76796bc52129d3;p=smartapps.git 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()