diff --git a/main.py b/main.py index 38c7fa2..c2f40ae 100644 --- a/main.py +++ b/main.py @@ -92,8 +92,8 @@ def mqtt_on_message(client, userdata, msg): if topic == "strawberry-pi-greenhouse/relay/channel/1": if payload == "on": relay_controller(channel_1, "True") - # elif payload == "off": - # relay_controller(channel_1, "False") + elif payload == "off": + relay_controller(channel_1, "False") elif topic == "strawberry-pi-greenhouse/relay/channel/2": if payload == "on": relay_controller(channel_2, "True")