Update pzemac.rst (#1352)

This commit is contained in:
Víctor Ferrer García 2021-08-03 13:36:12 +02:00 committed by GitHub
parent f3e33b93fd
commit 96bc8820f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ for more information.
This page refers to version V3 of the PZEM004T. This page refers to version V3 of the PZEM004T.
For using the older V1 variant of this sensor please see :doc:`pzem004t <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 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. to some pins on your board and the baud rate set to 9600.
@ -38,6 +38,8 @@ to some pins on your board and the baud rate set to 9600.
rx_pin: D1 rx_pin: D1
tx_pin: D2 tx_pin: D2
baud_rate: 9600 baud_rate: 9600
modbus:
sensor: sensor:
- platform: pzemac - platform: pzemac
@ -74,6 +76,7 @@ Configuration variables:
sensor. Defaults to ``60s``. sensor. Defaults to ``60s``.
- **address** (*Optional*, int): The address of the sensor if multiple sensors are attached to - **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``. 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 See Also
-------- --------