From 4824f78773736503bfae9f4c769bcf600c451801 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sun, 18 Dec 2022 10:32:29 +0000 Subject: [PATCH] Make the MQTT topic more compatible with HA & Tasmota --- get_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_data.py b/get_data.py index c35b94d..143288c 100644 --- a/get_data.py +++ b/get_data.py @@ -42,7 +42,7 @@ def send_to_mqtt(data: MQTTdata) -> None: msgs = [ { - "topic": f"sensors/home/{data['mac']}/tele/SENSOR", + "topic": f"tele/{data['mac']}/SENSOR", "payload": json.dumps(data), }, ]