All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.zeroone3010.yahueapi.DaylightSensor Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc
Show newest version
package io.github.zeroone3010.yahueapi;

/**
 * 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.
 */
public interface DaylightSensor extends Sensor {
  /**
   * Tells whether the current time is after sunrise but before sunset.
   *
   * @return {@code true} if it's daylight time, {@code false} if not.
   * Also returns {@code false} if the sensor has not been configured properly.
   */
  boolean isDaylightTime();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy