Interface AccessoryWithVOCDensity
-
public interface AccessoryWithVOCDensity
Accessory with VOC Density characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default double
getMaxVOCDensity()
return the max value for VOC density.default double
getMinStepVOCDensity()
return the min step value for VOC density.default double
getMinVOCDensity()
return the min value for VOC density.java.util.concurrent.CompletableFuture<java.lang.Double>
getVOCDensity()
Retrieves the VOC density.void
subscribeVOCDensity(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in VOC density.void
unsubscribeVOCDensity()
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
-
-