mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
add link to integration from total_daily_energy (#4135)
This commit is contained in:
parent
84b7857577
commit
b4a447ed50
@ -69,12 +69,30 @@ Some sensors such as the :doc:`HLW8012 <hlw8012>` expose their power sensor with
|
||||
- multiply: 0.001
|
||||
unit_of_measurement: kW
|
||||
|
||||
Lifetime instead of Daily
|
||||
-------------------------
|
||||
|
||||
For a more-generic version of this component which does not reset every midnight, see :doc:`integration`, which can provide device-lifetime values instead of daily values with the following example settings:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example configuration entry
|
||||
sensor:
|
||||
- platform: integration
|
||||
name: 'Total Energy'
|
||||
sensor: my_power
|
||||
time_unit: h
|
||||
restore: true
|
||||
state_class: total_increasing
|
||||
device_class: energy
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
- :ref:`sensor-filters`
|
||||
- :doc:`hlw8012`
|
||||
- :doc:`cse7766`
|
||||
- :doc:`integration`
|
||||
- :doc:`/components/sensor/pulse_counter`
|
||||
- :doc:`/components/sensor/pulse_meter`
|
||||
- :doc:`/components/time/homeassistant`
|
||||
|
Loading…
Reference in New Issue
Block a user