Make the MQTT topic more compatible with HA & Tasmota

This commit is contained in:
Scott Wallace 2022-12-18 10:32:29 +00:00
parent a9c854d4d0
commit 4824f78773
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -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),
},
]