Interface AccessoryWithHumidityDehumidifierThreshold
-
public interface AccessoryWithHumidityDehumidifierThresholdDehumidifier with humidity threshold.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Double>getHumidityThreshold()Retrieves the humidity threshold.voidsetHumidityThreshold(Double value)Sets the humidity threshold above which the dehumidifier should be turned on.voidsubscribeHumidityThreshold(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the humidity threshold.voidunsubscribeHumidityThreshold()Unsubscribes from changes in the humidity threshold.
-
-
-
Method Detail
-
getHumidityThreshold
CompletableFuture<Double> getHumidityThreshold()
Retrieves the humidity threshold.- Returns:
- a future that will contain the humidity threshold.
-
setHumidityThreshold
void setHumidityThreshold(Double value) throws Exception
Sets the humidity threshold above which the dehumidifier should be turned on.- Parameters:
value- the humidity threshold, in celsius degrees.- Throws:
Exception- when the threshold cannot be changed.
-
subscribeHumidityThreshold
void subscribeHumidityThreshold(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the humidity threshold.- Parameters:
callback- the function to call when the state changes.
-
unsubscribeHumidityThreshold
void unsubscribeHumidityThreshold()
Unsubscribes from changes in the humidity threshold.
-
-