Interface AccessoryWithVOCDensity


  • public interface AccessoryWithVOCDensity
    Accessory with VOC Density characteristic.
    • 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