Interface AccessoryWithVOCDensity
-
public interface AccessoryWithVOCDensityAccessory with VOC Density characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default doublegetMaxVOCDensity()return the max value for VOC density.default doublegetMinStepVOCDensity()return the min step value for VOC density.default doublegetMinVOCDensity()return the min value for VOC density.java.util.concurrent.CompletableFuture<java.lang.Double>getVOCDensity()Retrieves the VOC density.voidsubscribeVOCDensity(HomekitCharacteristicChangeCallback callback)Subscribes to changes in VOC density.voidunsubscribeVOCDensity()Unsubscribes from changes
-
-
-
Method Detail
-
getVOCDensity
java.util.concurrent.CompletableFuture<java.lang.Double> getVOCDensity()
Retrieves the VOC density.- Returns:
- a future with the VOC density
-
getMinVOCDensity
default double getMinVOCDensity()
return the min value for VOC density. overwrite if you want to change the default value.- Returns:
- min VOC density
-
getMaxVOCDensity
default double getMaxVOCDensity()
return the max value for VOC density. overwrite if you want to change the default value.- Returns:
- max VOC density
-
getMinStepVOCDensity
default double getMinStepVOCDensity()
return the min step value for VOC density. overwrite if you want to change the default value.- Returns:
- min step VOC density
-
subscribeVOCDensity
void subscribeVOCDensity(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in VOC density.- Parameters:
callback- the function when VOC density changes
-
unsubscribeVOCDensity
void unsubscribeVOCDensity()
Unsubscribes from changes
-
-