From 0af34ac2e073c04f2ea716bef512ae6d0e8884f0 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Tue, 24 Jun 2025 07:17:49 -0700 Subject: [PATCH] Document `max_sub_interval` for `derivative` (#39690) Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- source/_integrations/derivative.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/_integrations/derivative.markdown b/source/_integrations/derivative.markdown index 07fc32a3744..503b8d443dd 100644 --- a/source/_integrations/derivative.markdown +++ b/source/_integrations/derivative.markdown @@ -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