Interface AccessoryWithCoolingThresholdTemperature
-
public interface AccessoryWithCoolingThresholdTemperatureAccessory with cooling threshold temperature.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Double>getCoolingThresholdTemperature()Retrieves the temperature above which the thermostat should begin cooling.default doublegetMaxCoolingThresholdTemperature()return the max value for cooling threshold temperature.default doublegetMinCoolingThresholdTemperature()return the min value for cooling threshold temperature.default doublegetStepCoolingThresholdTemperature()return the min step value for cooling threshold temperature.voidsetCoolingThresholdTemperature(java.lang.Double value)Sets the temperature above which the thermostat should begin cooling.voidsubscribeCoolingThresholdTemperature(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the cooling threshold.voidunsubscribeCoolingThresholdTemperature()Unsubscribes from changes in the cooling threshold.
-
-
-
Method Detail
-
getCoolingThresholdTemperature
java.util.concurrent.CompletableFuture<java.lang.Double> getCoolingThresholdTemperature()
Retrieves the temperature above which the thermostat should begin cooling.- Returns:
- a future that will contain the threshold temperature, in celsius degrees.
-
setCoolingThresholdTemperature
void setCoolingThresholdTemperature(java.lang.Double value) throws java.lang.ExceptionSets the temperature above which the thermostat should begin cooling.- Parameters:
value- the threshold temperature, in celsius degrees.- Throws:
java.lang.Exception- when the threshold temperature cannot be changed.
-
getMinCoolingThresholdTemperature
default double getMinCoolingThresholdTemperature()
return the min value for cooling threshold temperature. overwrite if you want to change the default value.- Returns:
- min threshold temperature
-
getMaxCoolingThresholdTemperature
default double getMaxCoolingThresholdTemperature()
return the max value for cooling threshold temperature. overwrite if you want to change the default value.- Returns:
- max threshold temperature
-
getStepCoolingThresholdTemperature
default double getStepCoolingThresholdTemperature()
return the min step value for cooling threshold temperature. overwrite if you want to change the default value.- Returns:
- step for threshold temperature
-
subscribeCoolingThresholdTemperature
void subscribeCoolingThresholdTemperature(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the cooling threshold.- Parameters:
callback- the function to call when the state changes.
-
unsubscribeCoolingThresholdTemperature
void unsubscribeCoolingThresholdTemperature()
Unsubscribes from changes in the cooling threshold.
-
-