Interface AccessoryWithHumidityDehumidifierThreshold
-
public interface AccessoryWithHumidityDehumidifierThreshold
Dehumidifier 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.void
setHumidityThreshold(java.lang.Double value)
Sets the humidity threshold above which the dehumidifier should be turned on.void
subscribeHumidityThreshold(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the humidity threshold.void
unsubscribeHumidityThreshold()
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.Exception
Sets the humidity threshold above which the dehumidifier 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.
-
-