Interface AccessoryWithTargetRelativeHumidity
-
public interface AccessoryWithTargetRelativeHumidityaccessory with target relative humidity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Double>getTargetRelativeHumidity()Retrieves the target relative humidity.voidsetTargetRelativeHumidity(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
CompletableFuture<Double> getTargetRelativeHumidity()
Retrieves the target relative humidity.- Returns:
- a future that will contain the target relative humidity.
-
setTargetRelativeHumidity
void setTargetRelativeHumidity(Double value) throws Exception
Sets the target relative humidity.- Parameters:
value- the target relative humidity.- Throws:
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.
-
-