I have published an MQTT Topic: cmnd/obkSocket/EnergyCntReset (value 0). It resets all energy counter values but NOT obkSocket/energycounter_today. This topic still keeps its old values:
I've checked with self test:
It seems you're using EnergyCntReset incorrectly. You should invoke it without any arguments. I am not the author of this command, but I think so...
It indeed does not work as you expect if you use 0 as argument.
I think the intention of author is to allow extra argument which, if set, is used to set the energy counter to.
So, in a nutshell:
- without argument, it resets all counters
- with argument, it sets total consumption to given value
It's probably not a bug, but a behaviour per design.