Interface AccessoryWithHumidityDehumidifierThreshold


  • public interface AccessoryWithHumidityDehumidifierThreshold
    Dehumidifier with humidity threshold.
    • Method Detail

      • getHumidityThreshold

        CompletableFuture<Double> getHumidityThreshold()
        Retrieves the humidity threshold.
        Returns:
        a future that will contain the humidity threshold.
      • setHumidityThreshold

        void setHumidityThreshold​(Double value)
                           throws Exception
        Sets the humidity threshold above which the dehumidifier should be turned on.
        Parameters:
        value - the humidity threshold, in celsius degrees.
        Throws:
        Exception - when the threshold cannot be changed.
      • subscribeHumidityThreshold

        void subscribeHumidityThreshold​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the humidity threshold.
        Parameters:
        callback - the function to call when the state changes.
      • unsubscribeHumidityThreshold

        void unsubscribeHumidityThreshold()
        Unsubscribes from changes in the humidity threshold.