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

View File

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