cse7766: add energy sensor (#1679)

This commit is contained in:
Adrián Panella 2021-11-30 09:08:06 -06:00 committed by GitHub
parent f25e069bb9
commit 960f0c2304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,8 @@ Additionally, you need to set the baud rate to 4800.
name: "Sonoff Pow R2 Voltage"
power:
name: "Sonoff Pow R2 Power"
energy:
name: "Sonoff Pow R2 Energy"
.. note::
The configuration above should work for Sonoff POWs (R2).
@ -52,6 +53,8 @@ Configuration variables:
:ref:`Sensor <config-sensor>`.
- **voltage** (*Optional*): Use the voltage value of the sensor in V (RMS).
All options from :ref:`Sensor <config-sensor>`.
- **energy** (*Optional*): Use the total energy value of the sensor in Wh.
All options from :ref:`Sensor <config-sensor>`.
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
sensor. Defaults to ``60s``.
- **uart_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the :ref:`UART Component <uart>` if you want