46
0
spogulis no https://github.com/c3e/Heizberry.git synced 2024-04-01 15:11:26 +00:00

Separated on/off-messages from temperature readings

Šī revīzija ir iekļauta:
Sebastian
2019-03-26 19:28:34 +01:00
vecāks 8a7ec74538
revīzija 2538b01a48

Parādīt failu

@@ -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')