From 2538b01a48ebcff638decba82c25c8d28ea0e1e1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 26 Mar 2019 19:28:34 +0100 Subject: [PATCH] Separated on/off-messages from temperature readings --- heizberry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/heizberry.py b/heizberry.py index c3eba75..5dfca4a 100755 --- a/heizberry.py +++ b/heizberry.py @@ -56,6 +56,7 @@ def on_message(client, userdata, message): thermostatCantina.target_temperature=temperature_off else: thermostatCantina.target_temperature=round(float(msg),1) + sendReadings() def sendReadings(): log.debug('read target temperature from thermostats')