Energy measurement with espeasy and pzem-004t

Moderator: leecollings

User avatar
psubiaco
Posts: 194
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by psubiaco »

Please check https://github.com/CreasolTech/domoticz-pzem-016 again: I've put a wiring schematic for PZEM-004T: as you can see, you have to use a TTL/USB converter, because PZEM-004T has not RS485 output.
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
mrfunk
Posts: 7
Joined: Wednesday 03 January 2024 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by mrfunk »

Ok thanks. (Was a late night trying with this 485)


Would this adapter adapter work, as it used a ubiquitous CH340g .. want to order something today on Amazon (UK) Fasizi 3.3V / 5V USB to TTL converter CH340G UART Serial Adapter Module Golden https://amzn.eu/d/3pL3zlR

Do you know which adapter you used.

If it worked, what would I set the link to , 3.3 or 5v?

Many thanks for getting back 😄
User avatar
psubiaco
Posts: 194
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by psubiaco »

As I never had a PZEM-004T, I cannot answer for sure. Just connect GND, RXD and TXD and 5V as indicated in the schematic.
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
mrfunk
Posts: 7
Joined: Wednesday 03 January 2024 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by mrfunk »

Hi just want to say a massive thanks 👍... Got this working by just using the correct ttl to usb adapter from Amazon as per my previous post 😄😄😄.. very impressed!
euhen
Posts: 1
Joined: Thursday 26 December 2024 13:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by euhen »

Hello all,

I have PZEM-004T connected with ESPEasy D1 mini ESP8266 and i want to see the graphics with consumption every 30 seconds in Domoticz. In this moment i see the consumption in Watts with a cycle of 5 minute. This is by default. How can i make the modification?

Thank you!
User avatar
waltervl
Posts: 5155
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy measurement with espeasy and pzem-004t

Post by waltervl »

You cannot change this in the graph, it is hardcoded.
What you can do is send the data to influxDB and graph it from there..
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests