Support for PZEM-017

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sanc0
Normal user
Posts: 13
Joined: 18 Oct 2022, 12:16

Support for PZEM-017

#1 Post by sanc0 » 25 Oct 2024, 21:55

Hi,
I have a question for the members of the forum if communication with PZEM-017 works for anyone. I tried it with the P-102 PZEM-004Tv30-Multiple plugin but it doesn't work (PZEM-004T v3.0 works for me).
Thanks

EDIT: I use modified PZEM-017 with TTL communication behind the optocouplers. Communication with the PZEM application works.
.
pzem017.jpg
pzem017.jpg (148.8 KiB) Viewed 1067 times
.
pzem003app.jpg
pzem003app.jpg (36.16 KiB) Viewed 1067 times
.
EDIT2: Tasmota works.
.
tasmota.jpg
tasmota.jpg (41.54 KiB) Viewed 1059 times
Last edited by sanc0 on 25 Oct 2024, 23:16, edited 1 time in total.

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Support for PZEM-017

#2 Post by Ath » 25 Oct 2024, 22:52

You can try P078 Eastron Modbus plugin, to see if it matches any of the devices there, as it's using the Modbus protocol, but I can't verify for myself, as I don't own any matching device.
/Ton (PayPal.me)

sanc0
Normal user
Posts: 13
Joined: 18 Oct 2022, 12:16

Re: Support for PZEM-017

#3 Post by sanc0 » 25 Oct 2024, 23:49

Communication seems to work, but the communication protocol does not fit.

SDM120C
Checksum (pass/fail): 10/30
.
Untitled-1.jpg
Untitled-1.jpg (42.29 KiB) Viewed 1052 times

sanc0
Normal user
Posts: 13
Joined: 18 Oct 2022, 12:16

Re: Support for PZEM-017

#4 Post by sanc0 » 26 Oct 2024, 09:31

The structure of modbus registers is different for AC and DC meters.

xnrg_06_pzem_dc.ino - PZEM-003,017 Modbus DC energy sensor support for Tasmota

// 0 1 2 3 4 5 6 7 = ModBus register
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 = Buffer index
// 01 04 10 05 40 00 0A 00 0D 00 00 00 02 00 00 00 00 00 00 D6 29
// Id Cc Sz Volt- Curre Power------ Energy----- HiAlm LoAlm Crc--

xnrg_05_pzem_ac.ino - PZEM-014,016 Modbus AC energy sensor support for Tasmota

// 0 1 2 3 4 5 6 7 8 9 = ModBus register
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 = Buffer index
// 01 04 14 08 D1 00 6C 00 00 00 F4 00 00 00 26 00 00 01 F4 00 64 00 00 51 34
// Id Cc Sz Volt- Current---- Power------ Energy----- Frequ PFact Alarm Crc--

TD-er
Core team member
Posts: 9360
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Support for PZEM-017

#5 Post by TD-er » 26 Oct 2024, 10:25

So we need to extend the plugin to also support the extended/new commands.

sanc0
Normal user
Posts: 13
Joined: 18 Oct 2022, 12:16

Re: Support for PZEM-017

#6 Post by sanc0 » 26 Oct 2024, 12:05

TD-er wrote: 26 Oct 2024, 10:25 So we need to extend the plugin to also support the extended/new commands.
That's right, Tasmota plugins could be an inspiration

sanc0
Normal user
Posts: 13
Joined: 18 Oct 2022, 12:16

Re: Support for PZEM-017

#7 Post by sanc0 » 11 Nov 2024, 20:57

TD-er wrote: 26 Oct 2024, 10:25 So we need to extend the plugin to also support the extended/new commands.
The plugin needs to be reduced because pzem-017 has fewer registers.
Is there any news?

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests