summaryrefslogtreecommitdiff
path: root/heating.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-16 12:09:47 +0000
committerroot <root@turin.home>2022-01-16 12:09:47 +0000
commitcd3de418b669e5ca18bbd515fa6f5cd0febd2696 (patch)
treeff6c9b6bac31bb28e67cf27a964e5a847caa7e35 /heating.py
parent450c3eefd0ba5b108a20474f78308a497ee32d01 (diff)
Trigger relay
Diffstat (limited to 'heating.py')
-rw-r--r--heating.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/heating.py b/heating.py
index a774254..9bb0bc5 100644
--- a/heating.py
+++ b/heating.py
@@ -22,8 +22,10 @@ class heating(ABC):
self.temperature = self.get_temperature()
if self.temperature < self.target:
self.on = True
+ self.turn_on()
else:
self.on = False
+ self.turn_off()
'''
self.db.exec(
"insert into temperature values (?,?,?,?)",