From 960f0c2304ad06f3c359def8298013db427ebd55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Panella?= Date: Tue, 30 Nov 2021 09:08:06 -0600 Subject: [PATCH] cse7766: add energy sensor (#1679) --- components/sensor/cse7766.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/sensor/cse7766.rst b/components/sensor/cse7766.rst index 0d2108051..c6172b471 100644 --- a/components/sensor/cse7766.rst +++ b/components/sensor/cse7766.rst @@ -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 `. - **voltage** (*Optional*): Use the voltage value of the sensor in V (RMS). All options from :ref:`Sensor `. +- **energy** (*Optional*): Use the total energy value of the sensor in Wh. + All options from :ref:`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 ` if you want