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
|
thermostatCantina.target_temperature=temperature_off
|
||||||
else:
|
else:
|
||||||
thermostatCantina.target_temperature=round(float(msg),1)
|
thermostatCantina.target_temperature=round(float(msg),1)
|
||||||
|
sendReadings()
|
||||||
|
|
||||||
def sendReadings():
|
def sendReadings():
|
||||||
log.debug('read target temperature from thermostats')
|
log.debug('read target temperature from thermostats')
|
||||||
|
Loading…
Reference in New Issue
Block a user