From bc1c162ae9212c6c0e489a5289577bba6a0e505d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 29 Jun 2022 22:06:39 +0200 Subject: [PATCH] added user/passwd and debug for mqtt connection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 9029fa6..925e4cc 100644 --- a/main.py +++ b/main.py @@ -174,6 +174,8 @@ if __name__ == '__main__': mqttBroker ="homeassistant.ping-mee.local" client = mqtt.Client("server-rack-led-1") + client.username_pw_set("mqtt", "pmMQTT_11!") + debug_print("Connecting to MQTT Broker "+str(mqttBroker)) client.connect(mqttBroker) client.on_connect = mqtt_on_connect client.on_message = mqtt_on_message