Added energy sensor to pzemdc (#2177)

Co-authored-by: Andreas <andreas.hergert@otrs.com>
This commit is contained in:
Andreas Hergert 2023-02-23 18:38:48 +01:00 committed by GitHub
parent ac71defd45
commit c0b17e0477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,8 @@ to some pins on your board and the baud rate set to 9600.
name: "PZEM-003 Voltage"
power:
name: "PZEM-003 Power"
energy:
name: "PZEM-003 Energy"
update_interval: 60s
Configuration variables:
@ -53,6 +55,8 @@ Configuration variables:
:ref:`Sensor <config-sensor>`.
- **voltage** (*Optional*): Use the voltage value of the sensor in volts.
All options from :ref:`Sensor <config-sensor>`.
- **energy** (*Optional*): Use the energy value of the sensor in kWh.
All options from :ref:`Sensor <config-sensor>`.
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
sensor. Defaults to ``60s``.
- **address** (*Optional*, int): The address of the sensor if multiple sensors are attached to