Package io.github.zeroone3010.yahueapi
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 Summary
Modifier and Type Method Description booleanisDaylightTime()Tells whether the current time is after sunrise but before sunset.Methods inherited from interface io.github.zeroone3010.yahueapi.Sensor
getId, getLastUpdated, getName, getProductName, getType
-
Method Details
-
isDaylightTime
boolean isDaylightTime()Tells whether the current time is after sunrise but before sunset.- Returns:
trueif it's daylight time,falseif not. Also returnsfalseif the sensor has not been configured properly.
-