Interface AccessoryWithTargetRelativeHumidity


  • public interface AccessoryWithTargetRelativeHumidity
    accessory with target relative humidity.
    • Method Detail

      • getTargetRelativeHumidity

        CompletableFuture<Double> getTargetRelativeHumidity()
        Retrieves the target relative humidity.
        Returns:
        a future that will contain the target relative humidity.
      • setTargetRelativeHumidity

        void setTargetRelativeHumidity​(Double value)
                                throws Exception
        Sets the target relative humidity.
        Parameters:
        value - the target relative humidity.
        Throws:
        Exception - when the target relative humidity cannot be changed.
      • subscribeTargetRelativeHumidity

        void subscribeTargetRelativeHumidity​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the target relative humidity.
        Parameters:
        callback - the function to call when the target relative humidity changes.
      • unsubscribeTargetRelativeHumidity

        void unsubscribeTargetRelativeHumidity()
        Unsubscribes from changes in the target relative humidity.