Hello,
i hope you can help me, im sadly not far enough into this topic so i d ont know what to do.
i got the following setup:
tasmota sml with script, 2 energy meters connected with ttl-ir devices.
in tasmota everything works, problem is how homeassitant parses the json from the mqtt that tasmota sends.
My tasmota script:
>D
>B
=>sensor53 r
>M 2
+1,5,s,0,9600,
+2,12,s,0,9600,
1,77070100010800FF@1000,Bezug,KWh,Bezug,3
1,77070100020800FF@1000,Einspeisung,KWh,Einspeisung,3
1,77070100100700ff@1,Aktuell,W,ZW_aktuell,3
2,---------------------------------
2,77070100010800FF@1000,Bezug,KWh,Bezug_2,3
2,77070100020800FF@1000,Lieferung,KWh,Lieferung,3
2,77070100100700ff@-1,Aktuell,W,Dach_pw,3
#
the resulting mqtt message looks like this:
xxxxxx82/SENSOR = {"Time":"2025-03-05T12:49:30","":{"Bezug":15651.640,"Einspeisung":39967.656,"ZW_aktuell":150.000},"":{"Bezug_2":0.000,"Lieferung":48188.893,"Dach_pw":4914.000}}
homeassistant only parses this information:
{
"Time": "2025-03-05T12:50:00",
"": {
"Bezug_2": 0,
"Lieferung": 48188.934,
"Dach_pw": 4915
}
}
so i suspect it has something to do with the two “” between the energy meters in the mqtt message.
I thank you for every help i can get.
Sebastian