@@ -24,6 +24,36 @@ public interface ThermostatAccessory extends HomekitAccessory {
2424 */
2525 CompletableFuture <Double > getCurrentTemperature ();
2626
27+ /**
28+ * return the min value for current temperature. overwrite if you want to change the default
29+ * value.
30+ *
31+ * @return min current temperature
32+ */
33+ default double getMinCurrentTemperature () {
34+ return 0 ;
35+ }
36+
37+ /**
38+ * return the max value for current temperature. overwrite if you want to change the default
39+ * value.
40+ *
41+ * @return max current temperature
42+ */
43+ default double getMaxCurrentTemperature () {
44+ return 100 ;
45+ }
46+
47+ /**
48+ * return the min step value for current temperature. overwrite if you want to change the default
49+ * value.
50+ *
51+ * @return min step current temperature
52+ */
53+ default double getMinStepCurrentTemperature () {
54+ return 0.1 ;
55+ }
56+
2757 /**
2858 * Retrieves the target temperature, in celsius degrees.
2959 *
@@ -39,6 +69,34 @@ public interface ThermostatAccessory extends HomekitAccessory {
3969 */
4070 void setTargetTemperature (Double value ) throws Exception ;
4171
72+ /**
73+ * return the min value for target temperature. overwrite if you want to change the default value.
74+ *
75+ * @return min target temperature
76+ */
77+ default double getMinTargetTemperature () {
78+ return 10 ;
79+ }
80+
81+ /**
82+ * return the max value for target temperature. overwrite if you want to change the default value.
83+ *
84+ * @return max target temperature
85+ */
86+ default double getMaxTargetTemperature () {
87+ return 38 ;
88+ }
89+
90+ /**
91+ * return the min step value for target temperature. overwrite if you want to change the default
92+ * value.
93+ *
94+ * @return min step target temperature
95+ */
96+ default double getMinStepTargetTemperature () {
97+ return 0.1 ;
98+ }
99+
42100 /**
43101 * Retrieves the current {@link CurrentHeatingCoolingStateEnum} of the thermostat.
44102 *
0 commit comments