Interface TemperatureSensor

All Superinterfaces:
Device
All Known Implementing Classes:
TemperatureSensorImpl

public interface TemperatureSensor
extends Device
A sensor measuring the room temperature. Most often found as an additional feature in a Philips Hue motion detector.
  • Method Details

    • getDegreesCelsius

      BigDecimal getDegreesCelsius()
      Returns the detected temperature in degrees Celsius.
      Returns:
      A BigDecimal with two decimal places, indicating the current temperature. May also return null if the sensor is disabled in the Hue app.
    • getDegreesFahrenheit

      BigDecimal getDegreesFahrenheit()
      Returns the detected temperature in degrees Fahrenheit.
      Returns:
      A BigDecimal with two decimal places, indicating the current temperature. May also return null if the sensor is disabled in the Hue app.
    • getLastChanged

      ZonedDateTime getLastChanged()
      The last time the temperature was updated.
      Returns:
      Timestamp.