Interface AccessoryWithVOCDensity
- 
 public interface AccessoryWithVOCDensityAccessory with VOC Density characteristic.
- 
- 
Method SummaryAll 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- 
getVOCDensityjava.util.concurrent.CompletableFuture<java.lang.Double> getVOCDensity() Retrieves the VOC density.- Returns:
- a future with the VOC density
 
 - 
getMinVOCDensitydefault double getMinVOCDensity() return the min value for VOC density. overwrite if you want to change the default value.- Returns:
- min VOC density
 
 - 
getMaxVOCDensitydefault double getMaxVOCDensity() return the max value for VOC density. overwrite if you want to change the default value.- Returns:
- max VOC density
 
 - 
getMinStepVOCDensitydefault double getMinStepVOCDensity() return the min step value for VOC density. overwrite if you want to change the default value.- Returns:
- min step VOC density
 
 - 
subscribeVOCDensityvoid subscribeVOCDensity(HomekitCharacteristicChangeCallback callback) Subscribes to changes in VOC density.- Parameters:
- callback- the function when VOC density changes
 
 - 
unsubscribeVOCDensityvoid unsubscribeVOCDensity() Unsubscribes from changes
 
- 
 
-