forked from Chaospott/Heizberry
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