Interface AccessoryWithHumidityHumidifierThreshold
-
public interface AccessoryWithHumidityHumidifierThresholdHumidifier with humidity threshold.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Double>getHumidityThreshold()Retrieves the humidity threshold.voidsetHumidityThreshold(java.lang.Double value)Sets the humidity threshold above which the humidifier 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
java.util.concurrent.CompletableFuture<java.lang.Double> getHumidityThreshold()
Retrieves the humidity threshold.- Returns:
- a future that will contain the humidity threshold.
-
setHumidityThreshold
void setHumidityThreshold(java.lang.Double value) throws java.lang.ExceptionSets the humidity threshold above which the humidifier should be turned on.- Parameters:
value- the humidity threshold, in celsius degrees.- Throws:
java.lang.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.
-
-