Energy measurement with espeasy and pzem-004t

Alitoy
Posts: 10
Joined: Wednesday 21 February 2018 20:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by Alitoy » Wednesday 14 March 2018 21:03

More information about the connection PZEM-004T :
Image

tontze
Posts: 329
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by tontze » Wednesday 14 March 2018 21:08

Yeah ok, so this is not ideal for computing one devices energy usage(without braking its cable), shame :/

But, i would still prefer clamp. Using clamp i wouldnt need to take wire off from main electric box to fit it in to wire.
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

Alitoy
Posts: 10
Joined: Wednesday 21 February 2018 20:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by Alitoy » Friday 23 March 2018 16:31

aleph0 wrote:
Tuesday 13 March 2018 22:44
Hi ! The PZEM-004T is in the "testing" mode, and I'm pretty sure we didn't port it to the 2018-03-13 version. I might try to compile it for this version on week-end, but won't have any hardware to test it anymore :/ Or you can use our development version here https://www.letscontrolit.com/forum/vie ... =30#p21383
Hi, aleph0
Did you have time to compile a newer version? ))

tontze
Posts: 329
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by tontze » Saturday 24 March 2018 13:50

gajotnt wrote:
Monday 18 December 2017 13:19
Officially supported in Tasmota 5.10.0b :D
On which device name ? Just did install latest sonoff-tasmota, but cannot find pzem under devices ?

I can see it enabled in config.user, but its not in devices list ? Is it supported only through sonoff device ?
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

aleph0
Posts: 70
Joined: Thursday 12 May 2016 15:47
Target OS: Linux
Domoticz version: 4.9728
Location: South of France
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by aleph0 » Monday 26 March 2018 16:18

Alitoy wrote:
Tuesday 13 March 2018 23:19
No problems ! I can test the new version.
And report the results. )))
I would be happy if you trust me to test the new 2018-03-13 version. )
Ok then ! Here it is in version 2018-03-26, tell us what ;-)
http://88.121.39.75/photos/domoticz/ESP ... re.bin.zip
I expect some problems because I recompiled it against the ESPeasySoftwareSerial provided in the 2018-03-26 to avoid duplicating the libraries, but it's not the version recommended by the original author of the plugin. So let's try and see !

tontze
Posts: 329
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by tontze » Friday 30 March 2018 13:25

JST 2.5 XH 4-Pin Connector Plug

That seems to be the connector that fits to white 4pin connector on pzem.
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

lyubomir
Posts: 1
Joined: Sunday 01 April 2018 18:52
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by lyubomir » Sunday 01 April 2018 19:05

Hello,

Today I tried to setup PZEM-004t with domoticz but without success.
I received this error in domoticz log:
2018-04-01 20:00:49.208 Error: EventSystem: in pzem1: [string "--[[Script to read infos from espeasy/pzem-00..."]:42: bad argument #1 to 'match' (string expected, got nil)
Image

Can you please tell me how can solve the issue?

Regards

PS. I solved the issue with domoticz update.

Dim33
Posts: 3
Joined: Monday 05 March 2018 23:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by Dim33 » Wednesday 29 August 2018 0:14

Hello everybody,

My energy measurement is operationnal by following this post and this one https://www.letscontrolit.com/forum/vie ... f=5&t=2595.
I use an ESP8266_4096.

But I have a problem :

- if I boot my ESP connected to the PZEM. My ESP doesn't start (no effect if I push on RESET button),
- If I boot my ESP (not connected to the PZEM), this one start normaly and after i can connect the PZEM to the ESP and the Energy measurement is OK.

This problem is painful because if i have a power cut, my Energy measurement does not restart.

Can you help me ?

Thanks in advance.

corederoma82
Posts: 76
Joined: Saturday 14 January 2017 22:34
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by corederoma82 » Wednesday 29 August 2018 13:25

Thanks for this great job,
but I don't understand how link pzem004 to the power (I mean physical connection).


Thanks
Raspberry PI 3, 3x Yeelight bulbs, 1x Yeeligh led strip, 1x Sonoff with ESP826

Dim33
Posts: 3
Joined: Monday 05 March 2018 23:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by Dim33 » Thursday 30 August 2018 22:52

Dim33 wrote:
Wednesday 29 August 2018 0:14
Hello everybody,

My energy measurement is operationnal by following this post and this one https://www.letscontrolit.com/forum/vie ... f=5&t=2595.
I use an ESP8266_4096.

But I have a problem :

- if I boot my ESP connected to the PZEM. My ESP doesn't start (no effect if I push on RESET button),
- If I boot my ESP (not connected to the PZEM), this one start normaly and after i can connect the PZEM to the ESP and the Energy measurement is OK.

This problem is painful because if i have a power cut, my Energy measurement does not restart.

Can you help me ?

Thanks in advance.
I modified the GPIO pin : GPIO-12 and 13 instead of GPIO-14 and 15 and all is OK.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests