Interface AccessoryWithTargetRelativeHumidity
-
public interface AccessoryWithTargetRelativeHumidityaccessory with target relative humidity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Double>getTargetRelativeHumidity()Retrieves the target relative humidity.voidsetTargetRelativeHumidity(java.lang.Double value)Sets the target relative humidity.voidsubscribeTargetRelativeHumidity(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the target relative humidity.voidunsubscribeTargetRelativeHumidity()Unsubscribes from changes in the target relative humidity.
-
-
-
Method Detail
-
getTargetRelativeHumidity
java.util.concurrent.CompletableFuture<java.lang.Double> getTargetRelativeHumidity()
Retrieves the target relative humidity.- Returns:
- a future that will contain the target relative humidity.
-
setTargetRelativeHumidity
void setTargetRelativeHumidity(java.lang.Double value) throws java.lang.ExceptionSets the target relative humidity.- Parameters:
value- the target relative humidity.- Throws:
java.lang.Exception- when the target relative humidity cannot be changed.
-
subscribeTargetRelativeHumidity
void subscribeTargetRelativeHumidity(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the target relative humidity.- Parameters:
callback- the function to call when the target relative humidity changes.
-
unsubscribeTargetRelativeHumidity
void unsubscribeTargetRelativeHumidity()
Unsubscribes from changes in the target relative humidity.
-
-