Document max_sub_interval for derivative (#39690)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
karwosts 2025-06-24 07:17:49 -07:00 committed by GitHub
parent b167c81b7e
commit 0af34ac2e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,8 @@ Metric Prefix:
description: Metric unit to prefix the derivative result ([Wikipedia](https://en.wikipedia.org/wiki/Unit_prefix)).
Time unit:
description: SI unit of time of the derivative. If this parameter is set, the unit of measurement will be set to **x/y** where **x** is the unit of the source sensor and **y** is the value of this parameter.
Max sub-interval:
description: Normally, the derivative is calculated each time the source sensor updates. If a time is specified for this option, the derivative will also be recalculated if this amount of time elapses without an update of the source sensor.
{% endconfiguration_basic %}
## YAML configuration
@ -86,6 +88,11 @@ time_window:
default: 0
required: false
type: time
max_sub_interval:
description: Normally, the derivative is calculated each time the source sensor updates. If a time is specified for this option, the derivative will also be recalculated if this amount of time elapses without an update of the source sensor.
required: false
type: time
default: 0
{% endconfiguration %}
## Temperature example