PZEM-004T V3 auto reset Energy usage each month

Hello all pro-programmers,

As we all know, the PZEM-004T V3 (see my project here) can accumulate and keep the energy usage up to 99999kWH.

Is it possible to have energy usage automatically RESET to zero at the end of each month?

Best regards and thank you inadvance.


Sorry, I forgot to mentioned that I did got the code from that post and integrated it to my code but for some reason, it does not reset.

Does that code automatic reset the reading at the end of each month or I have to build up the push button in Blynk to manually reset?

If it’s automatic reset each month then is there a way to keep any accumulate reading so I can see the total energy usage and monthly usage?

What I want is to see the energy usage each day, week, month and year if possible.

It’s simply a function, that you can call in anyway you wish - either via a hardware button, widget button, timed event etc.


Hi Pete,

Since I’m not a programmer or code writer but willing to learn to build some smart project with Blynk, could you please point me to some source of example so I can learn and to make this goal alive.

I don’t have your hardware to test if this works, and I don’t necessarily have the same libraries installed, so I’m not going to write code that I can’t test.


do you know any good sources or documentation for this time event function?