|
@@ -154,7 +154,7 @@ class heating_function(common_base):
|
154
|
154
|
SUMMER_TEMPERATURE = 5
|
155
|
155
|
|
156
|
156
|
class value_timeout_list(object):
|
157
|
|
- MAX_DELAY = 3
|
|
157
|
+ MAX_DELAY = 10
|
158
|
158
|
|
159
|
159
|
def __init__(self):
|
160
|
160
|
self.__data__ = []
|
|
@@ -208,12 +208,17 @@ class heating_function(common_base):
|
208
|
208
|
# cyclic task initialisation
|
209
|
209
|
self.ct = task.periodic(1, self.cyclic_task)
|
210
|
210
|
self.ct.run()
|
|
211
|
+ self.ct2 = task.periodic(5 * 60, self.cyclic_task_tx_setpoint)
|
|
212
|
+ self.ct2.run()
|
211
|
213
|
|
212
|
214
|
def timer_expired(self, device, data, key):
|
213
|
215
|
self.set(self.KEY_TEMPERATURE_SETPOINT, self[self.KEY_USER_TEMPERATURE_SETPOINT])
|
214
|
216
|
self.heating_valve.logger.info('Timer expired. returning to regular temperature setpoint %.1f°C.',
|
215
|
217
|
self[self.KEY_TEMPERATURE_SETPOINT])
|
216
|
218
|
|
|
219
|
+ def cyclic_task_tx_setpoint(self, rt):
|
|
220
|
+ self.heating_valve.set_heating_setpoint(self.get(self.KEY_TEMPERATURE_SETPOINT))
|
|
221
|
+
|
217
|
222
|
def cyclic_task(self, rt):
|
218
|
223
|
timer_value = self[self.KEY_BOOST_TIMER] - self.ct.cycle_time
|
219
|
224
|
if self[self.KEY_BOOST_TIMER] <= 0:
|