Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pzemac.rst #4563

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions components/sensor/pzemac.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@ The ``pzemac`` sensor platform allows you to use PZEM-004T V3 energy monitors
`datasheet <https://innovatorsguru.com/wp-content/uploads/2019/06/PZEM-004T-V3.0-Datasheet-User-Manual.pdf>`__)
with ESPHome.

The sensor can be connected in various configurations - please see the `manufacturer's website <https://innovatorsguru.com/pzem-004t-v3/>`__
Hardware:
---------

The sensor may comes in plastic enclosure, with or without a current transformer. Thus it can be connected in various configurations - please see the `manufacturer's website <https://innovatorsguru.com/pzem-004t-v3/>`__
for more information.

.. figure:: images/pzem004t v3 wiring.png
:align: center
:width: 80.0%

PZEM-004T Version 3 wiring diagram.

.. warning::

Please note that metering chip inside of PZEM module is powered from AC side and it has to be on during startup of ESPHome device, othervise measure results won't be visible.
The serial output has a 5V level. You may use a logic level converter to get a 3.3V level for your ESP.


.. figure:: images/pzem-ac.png
Expand Down Expand Up @@ -53,6 +63,7 @@ to some pins on your board and the baud rate set to 9600.

sensor:
- platform: pzemac
id: pzemac_1
current:
name: "PZEM-004T V3 Current"
voltage:
Expand Down Expand Up @@ -97,9 +108,11 @@ This action resets the total energy value of the pzemac device with the given ID

.. code-block:: yaml

on_...:
then:
- pzemac.reset_energy: pzemac_1
button:
- platform: template
name: "Energy Reset"
on_press:
- pzemac.reset_energy: pzemac_1

Changing the address of a PZEM-004T:
------------------------------------
Expand Down