diff --git a/main.py b/main.py index ccce1b7..518aeb9 100644 --- a/main.py +++ b/main.py @@ -101,24 +101,24 @@ def mqtt_on_message(client, userdata, msg): if topic == "strawberry-pi-greenhouse/relay/channel/1": if payload == "on": - pass + relay_ch_1.on() elif payload == "off": - pass + relay_ch_1.off() elif topic == "strawberry-pi-greenhouse/relay/channel/2": if payload == "on": - pass + relay_ch_2.on() elif payload == "off": - pass + relay_ch_2.off() elif topic == "strawberry-pi-greenhouse/relay/channel/3": if payload == "on": - pass + relay_ch_3.on() elif payload == "off": - pass + relay_ch_3.off() elif topic == "strawberry-pi-greenhouse/relay/channel/4": if payload == "on": - pass + relay_ch_4.on() elif payload == "off": - pass + relay_ch_4.off() if __name__ == "__main__":