Support for PZEM 004T Energy monitor

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
mihai.icey.ro
Normal user
Posts: 15
Joined: 01 May 2019, 00:24

Re: Support for PZEM 004T Energy monitor

#301 Post by mihai.icey.ro » 15 Feb 2022, 12:36

Answer for the questions:
1. it's the round one, it's on the single wire. N wire

2. 130W it's from the Server display. the max power is 500w but it stays at 130W

3. 3 days has passed and i have the following data:

Code: Select all

Voltage_V:234.8
Current_A:1.6
Power_W:300.9
Energy_WH:18.3
Power it should be 373.44 . P = U * I => 234.8 * 1.6 = 373.44A
4. thanks :)
djelau wrote: 13 Feb 2022, 12:12 About energy unit:
< 10 kWh, unit is Wh (1 kWh= 1000 Wh), such as : 9999 Wh.
10 kWh and more,unit is kWh, such as : 9999,99 kWh
So if your pzem is running for a long time, then the unit is kWh.

1. What type of current probe do you use ? If open one, be sure that it is stongly closed around a single wire.
2. When you say 130W, how do you get this information ? a measurement or on the label ? Because on the label, it is a maximum.
3. It's there a way to check it? => Have a look at Power_W value to confirm the mean value ~13W (indeed it's low, so check 1.).
4. Values are stored in PZEM directly. Neither calculation, nor mesurement are performed at ESP level. Everything is made by PZEM. Only communication to retreive value is performed by ESP. In case of power loss, value will be restore in ESP as soon as PZEM sends its values.

djelau
Normal user
Posts: 45
Joined: 08 Nov 2019, 15:33
Location: France

Re: Support for PZEM 004T Energy monitor

#302 Post by djelau » 15 Feb 2022, 23:46

1. It should be on L (but no consequence)
3. Apparent power is U*I. But here, it's active power thus U*I*cos(phy). Among value in the plugin, you can get the power factor cos(phy). Here, your power factor is 0.8. This is a normal value for a server and switch which should be supply vwith a AC/DC supply.
So 300W*24hours*3days=21.6kWH. For me it's consistent with your 18.3kWH. Isn't it ?

mihai.icey.ro
Normal user
Posts: 15
Joined: 01 May 2019, 00:24

Re: Support for PZEM 004T Energy monitor

#303 Post by mihai.icey.ro » 16 Feb 2022, 08:46

I've change from N to L and I think he's measuring right now. The manual was with N wire...blody hell
In the book it says that I have to put N. I saw a previous post in which there was a diagram on L and I said to try.
I thought it was dubious that he was recording N
djelau wrote: 15 Feb 2022, 23:46 1. It should be on L (but no consequence)
3. Apparent power is U*I. But here, it's active power thus U*I*cos(phy). Among value in the plugin, you can get the power factor cos(phy). Here, your power factor is 0.8. This is a normal value for a server and switch which should be supply vwith a AC/DC supply.
So 300W*24hours*3days=21.6kWH. For me it's consistent with your 18.3kWH. Isn't it ?

mojso
New user
Posts: 6
Joined: 04 Jan 2021, 20:01

Re: Support for PZEM 004T Energy monitor

#304 Post by mojso » 16 Feb 2022, 15:37

Thank you very much

djelau wrote: 14 Feb 2022, 10:22
mojso wrote: 13 Feb 2022, 22:33 thanks for the reply. in espeasy pzem settings d1 and d2 are not allowed
Menu Hardware -> I2C Interface -> GPIO ⇄ SDA = None / GPIO → SCL = None
Then, D1,D2 will be available.

(Same for D9-Rx/D10-Tx in Tools->Advanced -> uncheck "Enable Serial port")

mihai.icey.ro
Normal user
Posts: 15
Joined: 01 May 2019, 00:24

Re: Support for PZEM 004T Energy monitor

#305 Post by mihai.icey.ro » 17 Feb 2022, 13:04

Hello.
I just found out that he displays KWh at Wh.

so Energy_WH:6.7 is actual = Energy_Kwh:6.7...

I tested with a parallel analog meter. :roll:

djelau
Normal user
Posts: 45
Joined: 08 Nov 2019, 15:33
Location: France

Re: Support for PZEM 004T Energy monitor

#306 Post by djelau » 17 Feb 2022, 19:38

mihai.icey.ro wrote: 17 Feb 2022, 13:04 so Energy_WH:6.7 is actual = Energy_Kwh:6.7...
strange, according to PZEM spec, the value should be 6700Wh.

mihai.icey.ro
Normal user
Posts: 15
Joined: 01 May 2019, 00:24

Re: Support for PZEM 004T Energy monitor

#307 Post by mihai.icey.ro » 18 Feb 2022, 09:05

djelau wrote: 17 Feb 2022, 19:38
mihai.icey.ro wrote: 17 Feb 2022, 13:04 so Energy_WH:6.7 is actual = Energy_Kwh:6.7...
strange, according to PZEM spec, the value should be 6700Wh.
Yes...i know...I was banging my head against the walls for a week because the calculations didn't work out, so that I could see that it sends kwh even if the value is below 10kwh.

djelau
Normal user
Posts: 45
Joined: 08 Nov 2019, 15:33
Location: France

Re: Support for PZEM 004T Energy monitor

#308 Post by djelau » 18 Feb 2022, 12:28

mihai.icey.ro wrote: 18 Feb 2022, 09:05 hat I could see that it sends kwh even if the value is below 10kwh
I check on my side, and it seems you are right !: I reset energy, and wait 1h at about 2000W => Energy=1.907.
I verify my code but no specific calculation on my side to convert Wh into kWh. So it's on PZEM side.

mihai.icey.ro
Normal user
Posts: 15
Joined: 01 May 2019, 00:24

Re: Support for PZEM 004T Energy monitor

#309 Post by mihai.icey.ro » 22 Feb 2022, 21:27

djelau wrote: 18 Feb 2022, 12:28
mihai.icey.ro wrote: 18 Feb 2022, 09:05 hat I could see that it sends kwh even if the value is below 10kwh
I check on my side, and it seems you are right !: I reset energy, and wait 1h at about 2000W => Energy=1.907.
I verify my code but no specific calculation on my side to convert Wh into kWh. So it's on PZEM side.
At least I'm not crazy :)) . I also looked over the code and everything is ok with you.
sorry for the late response...I was sick.
Yup...I talked to the producer and they said to give them pictures and video ...

mojso
New user
Posts: 6
Joined: 04 Jan 2021, 20:01

Re: Support for PZEM 004T Energy monitor

#310 Post by mojso » 20 Mar 2022, 20:46

Thanks, it works great for now. only kWh need to be converted to Wh for P1 meter ( Domoticz)


djelau wrote: 14 Feb 2022, 10:22
mojso wrote: 13 Feb 2022, 22:33 thanks for the reply. in espeasy pzem settings d1 and d2 are not allowed
Menu Hardware -> I2C Interface -> GPIO ⇄ SDA = None / GPIO → SCL = None
Then, D1,D2 will be available.

(Same for D9-Rx/D10-Tx in Tools->Advanced -> uncheck "Enable Serial port")

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 28 guests