From ac6139cae7a28d8f92a0ca502303e63179c558b1 Mon Sep 17 00:00:00 2001 From: jens Date: Sat, 9 Oct 2021 11:40:29 +0100 Subject: [PATCH] - fixed heater --- tasks/heater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/heater.py b/tasks/heater.py index 87d865b..27a16ea 100644 --- a/tasks/heater.py +++ b/tasks/heater.py @@ -17,7 +17,7 @@ class HeaterTask(ATask): self.pulse_counter = 0 def actor(self, y): - self.power_soll = max(0, 250 + self.device.get_power_max() * y) + self.power_soll = max(0, self.device.get_power_max() * y) def on_changed_active(self, is_activated): asyncio.create_task(self.send({'Activate': int(is_activated)})) @@ -52,6 +52,7 @@ class HeaterTask(ATask): if self.pulse_counter >= pulse_period_count: self.pulse_counter = 0 + print ("power_soll = {}".format(self.power_soll)) if self.power_soll < self.device.get_power_min(): if self.power_soll == 0 or self.pulse_counter >= on_count: self.device.set_power(0)