-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot reset Energy Today/Total for external meter #6561
Comments
If you are using an external meter, tasmota auto update the energy total to be in sincro with the hardware counter. If you want reset it you must reset the meter counter. But if @arendst is agree, we can add a new "setoption" command to enable or disable the autoupdate function. |
i used with PZEM04-T 3.0v , i think that he doesn't have a counter and don't have a reset button on board like version 1.0/2.0 . |
Hi, I have take a look to the pzem code and yes, it have a energy total counter, and is used to update the tasmota counter. In a previous commit I made, I introduced an autoupdate function to get tasmota counter in sync with the hardware counter. I have made a new PR to can choose between use the hardware counter or the tasmota counter, using the setoption72 command, but I'm waiting to Theo approval. |
Add command SetOption72 0/1 to switch between software (0) or hardware (1) energy total counter (#6561)
Closing this issue as it has been added |
@pablozg sorry .. but still its not fixed.. |
look...maybe i have a Ghost in my PZEM...
|
I cannot reproduce but I have only one PZEM004T v2 (I think). What happens when you connect just one PZEM? On the other hand, what is your GPIO configuration? As far as I know the PZEM004T does not do Frequency but your display shows frequency. Pls report output of command |
Ah just googled the V3 and it seems it now supports modbus protocol so must be using the PzemAc driver. That explains the frequency. I will have to dig up my Pzem014 for testing. |
(Try to) fix EnergyReset (again) (#6561)
Pls try the latest commit and report back. |
First, thank you for the quick response and great software!
With just 1 PZEM v3 connected value is still correct after energyreset1/2/3 0 and reboot.
The template I am using on this sonoff basic is
With the new build results are the same. |
Thx for testing. Could you pls try with just two connected. |
Ah don't bother. I think what's going on. Now I have to find a way to solve it. |
Do you compile yourself? |
(Try to) fix EnergyReset (again) (#6561)
And another possible fix. Pls report back. |
Great! Thx for your feedback. |
@arendst is that fix add to the code ? cause didn't see this in _changelog.ino.. |
@arendst look here https://github.com/mandulaj/PZEM-004T-v30 |
@arendst It still gets worse and brings crazy values |
Is there a possibility to split energy for each phase? |
BUG DESCRIPTION
I try to reset Energy Total/Today unsuccessfully, after I run the EnergyReset3 0 command, I get the same values but do not get 0. If I run the EnergyReset1 0 command then TODAY gets 0 and after a few seconds suddenly it gets a value that was previously.
Also run Reset5 , still got the same values , flash again with "Erase All Sketch" got the same results.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED
Configuration output here:
Rules output here:
Console output here:
TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
The text was updated successfully, but these errors were encountered: