logo elektroda
logo elektroda
X
logo elektroda

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

Daro1003 1209 12
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20887207
    Daro1003
    Level 33  
    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
    Erbit
    Level 38  
    I have PZM04 on a 3F power supply (3 PZM04 modules connected to one ESP) and Tasmota version 12.3.1

    The command "EnergyTotal" returns me such a value
    
    RESULT = {"EnergyTotal":{"Total":[0.326,4009.074,3079.256],"Yesterday":[10.169,5.068,4.893],"Today":[0.326,0.064,0.147]}}
    


    Thus I have to do the reset like this:
    Quote:

    EnergyTotal 1 0
    EnergyTotal 2 0
    EnergyTotal 3 0

    So for each phase (for each PZM) separately -. then it works.

    So it might work for you
    Quote:

    EnergyTotal 1 0
  • #3 20887405
    Daro1003
    Level 33  
    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 ?
  • ADVERTISEMENT
  • #4 20887473
    Erbit
    Level 38  
    Daro1003 wrote:
    Are you pointing to HA or Domoticz ?

    To HomeMatic.
  • #5 21432725
    sznickers
    Level 11  
    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. .
  • ADVERTISEMENT
  • #6 21432737
    Erbit
    Level 38  
    sznickers wrote:
    For me, these commands do not reset the module.
    ..
    .

    Because you used the commands for a three-phase meter. You have single phase so use what in the first post -> >>20887207 .
  • Helpful post
    #7 21432744
    sznickers
    Level 11  
    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 33  
    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.
  • #9 21432805
    sznickers
    Level 11  
    I observe that after the command is executed when the 230V is removed then it resets.
  • ADVERTISEMENT
  • #10 21432806
    Daro1003
    Level 33  
    So command and unplug 230V ?
    And ESP reset too or 230V alone.
  • #11 21432837
    sznickers
    Level 11  
    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.
  • #12 21432909
    Erbit
    Level 38  
    Daro1003 wrote:
    In the 3-phase I have not been able to reset the readings in the single-phase only.
    ...


    Back in January 2024 you described differently

    Daro1003 wrote:
    I also have 3 phase meters and as you write commands:
    
    EnergyTotal1 0
    EnergyTotal2 0
    EnergyTotal3 0 
    
    .
    They worked and reset the readings to zero so thanks.
    ....



    So did it work in 3F or did it not work using those commands I zero with and without a reboot?
  • #13 21439438
    xury
    Automation specialist
    You can also send the raw code via serial. e.g: SerialSend5 0600030002F80B
    More information in the PZEM documentation
  • Topic summary

    The discussion centers on the compatibility of Tasmota version 13.3.0 with PZEM 004 energy meters, particularly regarding the ability to reset total energy readings. A user inquires if the latest Tasmota version supports PZEM 004, as they are currently using version 10.1.0 and unable to reset energy totals with the command "EnergyTotal 0". Responses indicate that Tasmota version 12.3.1 successfully supports PZEM 004 and allows for resetting energy readings using commands like "EnergyTotal1 0", "EnergyTotal2 0", and "EnergyTotal3 0" for each phase. The discussion also mentions integration with HomeMatic and other home automation systems.
    Summary generated by the language model.
    ADVERTISEMENT