mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
total_daily_energy: add restore option (#1656)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
parent
e16e31733d
commit
22126d7493
@ -38,6 +38,9 @@ Configuration variables:
|
||||
to integrate over time.
|
||||
- **name** (**Required**, string): The name of the sensor.
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||
- **restore** (*Optional*, boolean): Whether to store the intermediate result on the device so
|
||||
that the value can be restored upon power cycle or reboot.
|
||||
Defaults to ``true``.
|
||||
- **min_save_interval** (*Optional*, :ref:`config-time`): The minimum time span between saving updated values to storage. This is to keep wearout of memory low. Defaults to ``0s``.
|
||||
- **method** (*Optional*, string): The method to use for calculating the total daily energy. One of
|
||||
``trapezoid``, ``left`` or ``right``. Defaults to ``right``.
|
||||
|
Loading…
Reference in New Issue
Block a user