@@ -24,6 +24,36 @@ public interface ThermostatAccessory extends HomekitAccessory {
24
24
*/
25
25
CompletableFuture <Double > getCurrentTemperature ();
26
26
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
+
27
57
/**
28
58
* Retrieves the target temperature, in celsius degrees.
29
59
*
@@ -39,6 +69,34 @@ public interface ThermostatAccessory extends HomekitAccessory {
39
69
*/
40
70
void setTargetTemperature (Double value ) throws Exception ;
41
71
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
+
42
100
/**
43
101
* Retrieves the current {@link CurrentHeatingCoolingStateEnum} of the thermostat.
44
102
*
0 commit comments