Interface AmbientLightSensor

All Superinterfaces:
Sensor
All Known Implementing Classes:
AmbientLightSensorImpl

public interface AmbientLightSensor
extends Sensor
  • Method Summary

    Modifier and Type Method Description
    int getLightLevel()
    Returns the current light level in lux.
    boolean isDark()
    Tells whether the current light level is below darkness threshold.
    boolean isDaylight()
    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 int indicating the current light level in lux.
    • isDaylight

      boolean isDaylight()
      Tells whether the current light level is above light threshold.
      Returns:
      true if above light threshold, false if not.
    • isDark

      boolean isDark()
      Tells whether the current light level is below darkness threshold.
      Returns:
      true if below darkness threshold, false if not.