Interface DaylightSensor

All Superinterfaces:
Sensor

public interface DaylightSensor
extends Sensor
The daylight sensor is a virtual sensor. It calculates the presence of daylight based the user's home location, i.e. their geographical coordinates. The user must set their home location in the advanced settings of the Hue app for this sensor to work.
  • Method Details

    • isDaylightTime

      boolean isDaylightTime()
      Tells whether the current time is after sunrise but before sunset.
      Returns:
      true if it's daylight time, false if not. Also returns false if the sensor has not been configured properly.