mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Update pzemac.rst (#1352)
This commit is contained in:
parent
f3e33b93fd
commit
96bc8820f6
@ -27,7 +27,7 @@ for more information.
|
||||
This page refers to version V3 of the PZEM004T.
|
||||
For using the older V1 variant of this sensor please see :doc:`pzem004t <pzem004t>`.
|
||||
|
||||
The communication with this integration is done over a :ref:`UART bus <uart>`.
|
||||
The communication with this integration is done over a :ref:`UART bus <uart>` using :ref:`Modbus <modbus>`.
|
||||
You must therefore have a ``uart:`` entry in your configuration with both the TX and RX pins set
|
||||
to some pins on your board and the baud rate set to 9600.
|
||||
|
||||
@ -39,6 +39,8 @@ to some pins on your board and the baud rate set to 9600.
|
||||
tx_pin: D2
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
current:
|
||||
@ -74,6 +76,7 @@ Configuration variables:
|
||||
sensor. Defaults to ``60s``.
|
||||
- **address** (*Optional*, int): The address of the sensor if multiple sensors are attached to
|
||||
the same UART bus. You will need to set the address of each device manually. Defaults to ``1``.
|
||||
- **modbus_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the Modbus hub.
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
Loading…
Reference in New Issue
Block a user