logo elektroda
logo elektroda
X
logo elektroda

Does Tasmota 13.3.0 support PZEM 004 and energy resetting on the NodeMCU?

Daro1003 3720 12
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20887207
    Daro1003
    Level 34  
    Posts: 2713
    Help: 295
    Rate: 605
    Hello
    Does the latest version of Tasmot 13.3.0 or any version after 10.1.0 work with PZEM 004 energy meters ?
    I currently have two meters built on the Node MCU the versions I have loaded are: 10.1.0.
    I ask because I wanted to zero the total energy with the command:
    EnergyTotal 0

    No and unfortunately it will not zero my total energy.
    I thought about loading the latest version, but some time ago I read that Tasmota no longer supports PZEM 004 after version 10.1.0

    On the socket SP111 I have Tasmota 13.1.0. and there the zeroing of the readings passed elegantly, but there is no PZEM 004.
  • ADVERTISEMENT
  • Helpful post
    #2 20887342
    Anonymous
    Level 1  
  • #3 20887405
    Daro1003
    Level 34  
    Posts: 2713
    Help: 295
    Rate: 605
    I also just have 3 phase meters and as you write the commands:
    
    EnergyTotal1 0
    EnergyTotal2 0
    EnergyTotal3 0 
    

    They worked and reset the readings so thanks.

    The second important piece of information from you is that you have this on version 12.3.1 and it works.

    Are you pointing to HA or Domoticz ?
  • #4 20887473
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #5 21432725
    sznickers
    Level 11  
    Posts: 196
    Help: 1
    Rate: 8
    For me, these commands do not reset the module
    Console with messages related to ESP8266EX and Tasmota project, showing connection status and energy consumption information. .
    Tasmota interface panel displaying energy consumption data. .
  • #6 21432737
    Anonymous
    Level 1  
  • Helpful post
    #7 21432744
    sznickers
    Level 11  
    Posts: 196
    Help: 1
    Rate: 8
    It doesn't work either, but I came across a very cool project :
    https://github.com/arendst/Tasmota/discussions/10567

    Run commands in the console to reset values:
    EnergyReset1 0 // reset values for Today
    EnergyReset2 0 // reset values for Yesterday
    EnergyReset3 0 // reset values for Total
    Run commands in the console to set values:
    EnergyReset3 33557123 // set values for Total (33557123 = 33557.123kWh)
    Run the commands in the console to set the settings of the two tariff counters "day / night":
    tariff1 07:00,23:00 // set values for tariff 1 (from 07:00 to 23:00)
    tariff2 23:00,07:00 // set values for tariff 2 (from 23:00 to 07:00)
  • #8 21432804
    Daro1003
    Level 34  
    Posts: 2713
    Help: 295
    Rate: 605
    In the 3-phase, I have not been able to reset the readings in the single-phase only.

    Added after 54 [seconds]: .

    I need to try the above commands.
  • ADVERTISEMENT
  • #9 21432805
    sznickers
    Level 11  
    Posts: 196
    Help: 1
    Rate: 8
    I observe that after the command is executed when the 230V is removed then it resets.
  • #10 21432806
    Daro1003
    Level 34  
    Posts: 2713
    Help: 295
    Rate: 605
    So command and unplug 230V ?
    And ESP reset too or 230V alone.
  • #11 21432837
    sznickers
    Level 11  
    Posts: 196
    Help: 1
    Rate: 8
    Reset my energy today and total- I have a 2 phase because I couldn't make more than 3 PZEMs on one board, so I have 3 boards with 2 PZEMs on each.
    Tasmota interface screen showing voltage, frequency, current, and energy data for two phases L1 and L2. .
    And he did so:
    (two phase recall)
    EnergyTotal1 0 enter
    EnergyTotal2 0 enter
    1.He switched off the 230V supply to the PZEM (I don't know if it matters, but there was voltage on the coils),
    2.switched off the 5V boards on the ESP,
    3.switched 230V on,
    4.switched on the 5v boards - ESP
    And note, I had two boards connected and it zeroed me on both different boards- onalaaaa :)

    Added after 11 [minutes]:

    And I've entered EnergyTotal1 1000, EnergyTotal2 2000 (i.e. adds up for both phases) and it starts from 3 kwh-no bomb- finally I've got something working :)
    Screenshot displaying commands and results related to EnergyTotal settings in an electronic system. .
    Tasmota dashboard with electrical data, showing voltage, frequency, and energy consumption for two phases.
  • ADVERTISEMENT
  • #12 21432909
    Anonymous
    Level 1  
  • #13 21439438
    xury
    Automation specialist
    Posts: 7078
    Help: 878
    Rate: 1491
    You can also send the raw code via serial. e.g: SerialSend5 0600030002F80B
    More information in the PZEM documentation
  • Topic summary

    ✨ Tasmota firmware version 13.3.0 and versions after 10.1.0 have limited or no official support for PZEM-004 energy meters, as noted by users. Version 12.3.1 still supports PZEM-004 with multi-phase setups, allowing energy total reset commands per phase (e.g., EnergyTotal1 0). Single-phase meters require different commands, and the standard EnergyTotal 0 command does not reset totals in newer versions. Alternative commands such as EnergyReset1 0, EnergyReset2 0, and EnergyReset3 0 can reset daily, yesterday, and total energy values respectively. Successful resetting often requires cycling the 230V power supply to the PZEM modules and sometimes resetting the ESP board. Users have also reported sending raw serial commands (e.g., SerialSend5 0600030002F80B) as a method to reset energy values. The discussion highlights that zeroing energy totals on PZEM-004 meters with Tasmota firmware depends on the meter phase configuration, firmware version, and proper command usage combined with power cycling.
    Generated by the language model.

    FAQ

    TL;DR: Confirmed: Tasmota 12.3.1 runs 3 PZEM‑004 modules; "for each phase... works." Use EnergyTotal1/2/3 for 3‑phase, EnergyReset for single‑phase. 13.3.0 isn’t confirmed here; some resets apply only after a power‑cycle. [Elektroda, Erbit, post #20887342]

    Why it matters: Helps Tasmota+PZEM‑004 users decide on upgrading and reliably reset energy totals without losing historical context.

    Quick Facts

    Does Tasmota 13.3.0 support PZEM‑004 on NodeMCU?

    This thread doesn’t confirm 13.3.0. It does confirm Tasmota 12.3.1 running three PZEM‑004 modules on one ESP. That shows support beyond 10.1.0. After upgrading, verify with EnergyTotal or EnergyReset commands in the Tasmota console. [Elektroda, Erbit, post #20887342]

    How do I reset total energy on a 3‑phase PZEM‑004?

    Reset each phase individually. "For each phase (for each PZM) separately - then it works." How-To: 1. Send EnergyTotal1 0, EnergyTotal2 0, EnergyTotal3 0. 2. Run EnergyTotal to confirm zeros per phase. 3. Resume normal operation. [Elektroda, Erbit, post #20887342]

    How do I reset energy on a single‑phase PZEM‑004?

    Use EnergyReset commands. Run: EnergyReset1 0 (Today), EnergyReset2 0 (Yesterday), EnergyReset3 0 (Total). You can also set a specific Total using EnergyReset3 with kWh multiplied by 1000. Example: EnergyReset3 33557123 sets 33,557.123 kWh. [Elektroda, sznickers, post #21432744]

    Reset command ran but values didn’t change—what should I do?

    Power-cycle the hardware. Users observed resets applying only after removing 230 V and restoring power. Execute the reset command, disconnect 230 V to the PZEM, then restore power and recheck readings. This edge case is worth testing during commissioning. [Elektroda, sznickers, post #21432805]

    How can I set a custom starting total (kWh)?

    Use EnergyReset3 with integer kWh*1000. Example: EnergyReset3 33557123 sets Total to 33,557.123 kWh. You can also reset Today and Yesterday using EnergyReset1 0 and EnergyReset2 0 respectively. Keep notes of any manual adjustments for audits. [Elektroda, sznickers, post #21432744]

    Can I adjust per‑phase totals directly?

    One user set per‑phase totals via EnergyTotal1 1000 and EnergyTotal2 2000. Their two‑phase sum then started at 3 kWh after a specific power sequence. They toggled 230 V to PZEM and 5 V to ESP before readings held. [Elektroda, sznickers, post #21432837]

    How do I view per‑phase totals in Tasmota?

    Run EnergyTotal in the console. Tasmota returns arrays for Total, Yesterday, and Today, one value per phase. Example format: Total [x,y,z], Yesterday [a,b,c], Today [d,e,f]. Use this to confirm per‑phase resets and daily counters. [Elektroda, Erbit, post #20887342]

    How many PZEM‑004 modules can one ESP handle reliably?

    A user operates three PZEM‑004 modules on one ESP in a 3‑phase setup. That’s a demonstrated configuration under Tasmota 12.3.1. Actual limits depend on wiring, timing, and firmware build options. Validate stability under your load. [Elektroda, Erbit, post #20887342]

    Was PZEM‑004 support removed after Tasmota 10.1.0?

    This thread contradicts that. A user confirmed 12.3.1 with three PZEM‑004 modules and noted resets work “for each phase separately.” That indicates support remains after 10.1.0 in real deployments. [Elektroda, Erbit, post #20887342]

    Which home automation platform did users pair with Tasmota here?

    HomeMatic. The original inquiry mentioned HA and Domoticz, but the reporting user integrated the setup with HomeMatic. Export your telemetry accordingly. [Elektroda, Erbit, post #20887473]

    Can I reset via raw serial instead of Tasmota commands?

    Yes. You can send a raw Modbus frame using SerialSend5 0600030002F80B. Consult the PZEM documentation for register maps and safety. This is a fallback when console commands are insufficient. [Elektroda, xury, post #21439438]

    Why doesn’t EnergyTotal 0 work on my single‑phase meter?

    A user reported EnergyTotal 0 did not clear totals on their single‑phase setup. Use EnergyReset1/2/3 instead, or test a power‑cycle. Confirm results with EnergyTotal afterward. [Elektroda, Daro1003, post #20887207]

    I used 3‑phase commands on a single‑phase meter—why no reset?

    Because those commands target three‑phase addressing. "You have single phase so use what in the first post." Use the single‑phase reset approach instead. [Elektroda, Erbit, post #21432737]
    Generated by the language model.
    ADVERTISEMENT