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 Summary
Modifier and Type Method Description BigDecimalgetDegreesCelsius()Returns the detected temperature in degrees Celsius.BigDecimalgetDegreesFahrenheit()Returns the detected temperature in degrees Fahrenheit.ZonedDateTimegetLastChanged()The last time the temperature was updated.
-
Method Details
-
getDegreesCelsius
BigDecimal getDegreesCelsius()Returns the detected temperature in degrees Celsius.- Returns:
- A
BigDecimalwith two decimal places, indicating the current temperature. May also returnnullif the sensor is disabled in the Hue app.
-
getDegreesFahrenheit
BigDecimal getDegreesFahrenheit()Returns the detected temperature in degrees Fahrenheit.- Returns:
- A
BigDecimalwith two decimal places, indicating the current temperature. May also returnnullif the sensor is disabled in the Hue app.
-
getLastChanged
ZonedDateTime getLastChanged()The last time the temperature was updated.- Returns:
- Timestamp.
-