Package io.github.zeroone3010.yahueapi
Interface TemperatureSensor
- All Superinterfaces:
Sensor
public interface TemperatureSensor extends Sensor
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.Methods inherited from interface io.github.zeroone3010.yahueapi.Sensor
getId, getLastUpdated, getName, getProductName, getType
-
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.
-