Mode is now automatically set to 'manual'.

This commit is contained in:
Sebastian 2019-03-21 23:24:27 +01:00
parent c5e2cdc70c
commit bf2a595c61
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ def on_message(client, userdata, message):
# Baellebad
if (message.topic == "foobar/oben/baellebad/heizung/action"):
thermostatBallpit.mode="manual"
if (msg == "on"):
thermostatBallpit.target_temperature=temperature_on
else:
@ -47,6 +48,7 @@ def on_message(client, userdata, message):
# Cantina
if (message.topic == "foobar/oben/cantina/heizung/action"):
thermostatCantina.mode="manual"
if (msg == "on"):
thermostatCantina.target_temperature=temperature_on
else: