Closed
Description
There seems to be a bug in Sonoff S31 running Espurna 1.12.6 The JSON energy is always reported by MQTT as 2147483647 which is in binary a pile of exactly 1111111's.
I just made a pot of coffee for example and here are the beginning and ending results.
{"current":"6.025","voltage":"119","power":"707","energy":"2147483647",
"time":"2018-05-11 19:46:04","mac":"5C:CF:7F:7D:2A:F1","host":"Coffee",
"ip":"192.168.0.58","id":3023}
{"current":"0.000","voltage":"123","power":"0","energy":"2147483647",
"time":"2018-05-11 19:57:05","mac":"5C:CF:7F:7D:2A:F1","host":"Coffee",
"ip":"192.168.0.58","id":3038}
Resetting energy still results in that same exact number. It never changes!