Interface AccessoryWithHeatingThresholdTemperature


  • public interface AccessoryWithHeatingThresholdTemperature
    • Method Detail

      • getHeatingThresholdTemperature

        java.util.concurrent.CompletableFuture<java.lang.Double> getHeatingThresholdTemperature()
        Retrieves the temperature below which the thermostat should begin heating.
        Returns:
        a future that will contain the threshold temperature, in celsius degrees.
      • setHeatingThresholdTemperature

        void setHeatingThresholdTemperature​(java.lang.Double value)
                                     throws java.lang.Exception
        Sets the temperature below which the thermostat should begin heating.
        Parameters:
        value - the threshold temperature, in celsius degrees.
        Throws:
        java.lang.Exception - when the threshold temperature cannot be changed.
      • getMinHeatingThresholdTemperature

        default double getMinHeatingThresholdTemperature()
        return the min value for heating threshold temperature. overwrite if you want to change the default value.
        Returns:
        min threshold temperature
      • getMaxHeatingThresholdTemperature

        default double getMaxHeatingThresholdTemperature()
        return the max value for heating threshold temperature. overwrite if you want to change the default value.
        Returns:
        max threshold temperature
      • getStepHeatingThresholdTemperature

        default double getStepHeatingThresholdTemperature()
        return the min step value for heating threshold temperature. overwrite if you want to change the default value.
        Returns:
        step for threshold temperature
      • subscribeHeatingThresholdTemperature

        void subscribeHeatingThresholdTemperature​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the heating threshold.
        Parameters:
        callback - the function to call when the state changes.
      • unsubscribeHeatingThresholdTemperature

        void unsubscribeHeatingThresholdTemperature()
        Unsubscribes from changes in the heating threshold.