letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.24k stars 2.2k forks source link

[P102] Howto get all 6 returned values (device: PZEM-004Tv30-Multiple) #3933

Closed net1957 closed 2 years ago

net1957 commented 2 years ago

PZEM-004T -(V3.0) can return 6 values, but one device in ESPEasy can only return 4

On older versions of the plugin, you could add 2 entries for the same PZEM, but in this latest version it's not possible. The "Address of PZEM" can't be reused.

How can I retrieve all 6 values ?

System configuration

Git Build: | HEAD_f162ebf Local Time: | 2022-01-26 17:50:39 Time Source: | NTP Uptime: | 0 days 0 hours 6 minutes Load: | 41.81% (LC=361) Free RAM: | 173656 (169080 - sendContentBlocking) Free Stack: | 7368 (4696 - sendContentBlocking) IP Address: | 192.168.10.132 RSSI: | -60 dBm (sk-ap) mDNS: | EspEasy-2.local

flashed bin: ESP Easy version: ESP_Easy_mega_20211224_energy_ESP32_4M316k

image

example: https://www.objetsconnectes.be/2021/01/19/pzem-004t-consommation-triphase-jeedom/

net1957 commented 2 years ago

I respond to my self. Perhaps it could help another user!

It work as expected, but you have to set the address of the pzem. If you give the address 1, you can add a second entry with the same address to get the 2 others values.

about the cabling : You can directory connect the pzem to an esp32 with 3.3V and not 5V as marked on the pzem. This power entry only power the RX and TX leds and the 2 photo-couplers. So no need for level shifting! it is much simpler .

Thanks for this great software.