[SOLVED] Sonoff Pow - MQTT 1.x Not Showing Values

Hi all, stumped on this one. I am running the 1.x legacy binding. Have not switched over yet. I am having an issue getting my POW values to populate. Here’s the rundown using just Total as an example.


Number LowFan_POW_Total "Total energy [%.3f kWh]" <total_energy> {mqtt="<[broker:tele/sonoff_EA9BC6/SENSOR:state:JSONPATH($.ENERGY.Total)]"}```

Sonoff Console:

MQT: /tele/sonoff_EA9BC6/SENSOR = {"Time":"2019-12-28T16:07:58","ENERGY":{"Total":1757.845,"Yesterday":1.851,"Today":0.002,"Period":0,"Power":0,"Factor":0.00,"Voltage":0,"Current":0.000}}


[INFO ] [ome.model.script.Low Fan Power Total] - 0

I have the JASONTRANSFORM installed.

I use another sonoff with the temp/humidity and it pulls in data just fine using:



Your topic has a leading / in the console but not in the binding parameters.
Mine hasn’t got a leading / in my tasmota console:

18:08:54 MQT: tele/WashingMachine/SENSOR = {"Time":"2019-12-28T18:08:53","ENERGY":{"TotalStartTime":"2019-12-11T17:37:33","Total":3.064,"Yesterday":0.000,"Today":0.000,"Period":0.0,"Power":0.0,"ApparentPower":0.0,"ReactivePower":0.0,"Factor":0.00,"Voltage":250,"Current":0.000}}
1 Like

Nice catch @vzorglub! That was it!

I also think it’s time you bite the bullet and move to MQTTv2.
Once you get the hang of it it’s pretty good.

And you can keep v1 while your are making the transition.

I still haven’t completely finished mine, but that’s because I am lazy
But in a couple of weeks I get rid of MQTTv1 and then I’ll do the Expire with the work around from @rlkoshak

Oh I know. It has been on my list but to find the time has not happened. Probably not that bad once I dig into it. Maybe by the end of January I can get there.