How to use PZEM004T Energy Monitor with esphome

Is it though? Can you ping it? Does HA see it?

Sorry! My badā€¦ After going to the integrations tab and Add pzem, I can see the sensors!
But the Esphome its still showing as OFFLINE

Glitch in the matrix.

Probably yeap! :smiley:
But I still need to fix itā€¦ :wink:

Why? Its working isnā€™t it?

This is usually caused by mDNS not working. see https://esphome.io/guides/faq.html?highlight=mdns

Thanks @nickrout, worked perfectly!

Someone knows a complete and clear guide on how to do this

This once here is very clear imho:

1 Like

What, read the documentation? Ridiculous.

1 Like

Can you please help me in the conection of multiple pzem? How do you insert the adress, meaning how do I know what is the adress of each pzem?

Iā€™m also looking for it! have you found more information?

Yes, it has ben pointed out. Please read the response.

Hi, someone managed to have PZEM-016 working with ESPHome? i mean with this mod: https://github.com/arendst/Tasmota/issues/3694#issuecomment-430400450

I saw that referred to in a thread somewhere on this forum, but the guy couldnā€™t get it to work. He strangely refused to use a convertor.

Some week ago i tried too a pzem-016 modified on a wemos d1 mini: it didnā€™t work. It works fine with pzem 004t v3. Same pzem-016 works fine with Tasmota. Strange thing is that 004t v3 and 016 uses the same modbus protocol and a modified 016 should be exactly the same as the 004t v3. When i will have time i will try again with a 485 to ttl converter (i have some)ā€¦ Do you remember wher is that thread?

No but if I find it Iā€™ll be back.

1 Like

Hi Iā€™m the author of the mod, I had it working using both Tasmota and ESPHome (lastest release). There is doc from ESPHome is not right, you should use stop_bits: 1 for PZEM-016

Try this :wink:

3 Likes

Oh, I put the stop_bits to 1 and it worked! Thanks @vicfergar ! :smiley:

Hello friends I have read all message. I have tried monitoring pzem-004t.v3 throw a sonoff and a esp32 camā€¦ And no successā€¦
Please anyone can share a yaml file with full configuration for esphome.
I have configured uart with 1 and 2 stop bits, I am Using ā€œpzemacā€ I have tried with 3v and with 5v so I am not sure if it is importantā€¦

Please, anyone know how to solve it?

Donā€™t know how many times this needs to be posted: https://esphome.io/components/sensor/pzemac.html