Make the MQTT topic more compatible with HA & Tasmota
This commit is contained in:
parent
a9c854d4d0
commit
4824f78773
|
@ -42,7 +42,7 @@ def send_to_mqtt(data: MQTTdata) -> None:
|
||||||
|
|
||||||
msgs = [
|
msgs = [
|
||||||
{
|
{
|
||||||
"topic": f"sensors/home/{data['mac']}/tele/SENSOR",
|
"topic": f"tele/{data['mac']}/SENSOR",
|
||||||
"payload": json.dumps(data),
|
"payload": json.dumps(data),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue