Package io.github.zeroone3010.yahueapi
Interface AmbientLightSensor
- All Superinterfaces:
Sensor
- All Known Implementing Classes:
AmbientLightSensorImpl
public interface AmbientLightSensor extends Sensor
-
Method Summary
Modifier and Type Method Description intgetLightLevel()Returns the current light level in lux.booleanisDark()Tells whether the current light level is below darkness threshold.booleanisDaylight()Tells whether the current light level is above light threshold.Methods inherited from interface io.github.zeroone3010.yahueapi.Sensor
getId, getLastUpdated, getName, getProductName, getType
-
Method Details
-
getLightLevel
int getLightLevel()Returns the current light level in lux.- Returns:
- A
intindicating the current light level in lux.
-
isDaylight
boolean isDaylight()Tells whether the current light level is above light threshold.- Returns:
trueif above light threshold,falseif not.
-
isDark
boolean isDark()Tells whether the current light level is below darkness threshold.- Returns:
trueif below darkness threshold,falseif not.
-