subscribe(lightSensor, "illuminance", illuminanceHandler, [filterEvents: false])
}
else {
- subscribe(location, "position", locationPositionChange)
+ subscribe(location, "mode", locationPositionChange)
subscribe(location, "sunriseTime", sunriseSunsetTimeHandler)
subscribe(location, "sunsetTime", sunriseSunsetTimeHandler)
//astroCheck()