mirror of
https://github.com/c3e/Heizberry.git
synced 2024-04-01 15:11:26 +00:00
Separated on/off-messages from temperature readings
This commit is contained in:
parent
8a7ec74538
commit
2538b01a48
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user