Interface AccessoryWithPM10Density


  • public interface AccessoryWithPM10Density
    Accessory with PM10 Density characteristic.
    • Method Detail

      • getPM10Density

        java.util.concurrent.CompletableFuture<java.lang.Double> getPM10Density()
        Retrieves the PM10 density.
        Returns:
        a future with the PM10 density
      • getMinPM10Density

        default double getMinPM10Density()
        return the min value for PM10 density. overwrite if you want to change the default value.
        Returns:
        min PM10 density
      • getMaxPM10Density

        default double getMaxPM10Density()
        return the max value for PM10 density. overwrite if you want to change the default value.
        Returns:
        max PM10 density
      • getMinStepPM10Density

        default double getMinStepPM10Density()
        return the min step value for PM10 density. overwrite if you want to change the default value.
        Returns:
        min step PM10 density
      • subscribePM10Density

        void subscribePM10Density​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in PM10 density.
        Parameters:
        callback - the function when PM10 density changes
      • unsubscribePM10Density

        void unsubscribePM10Density()
        Unsubscribes from changes