# Slow down incoming values when the changes are not major

**URL:** <https://discourse.nodered.org/t/slow-down-incoming-values-when-the-changes-are-not-major/46689>\
**Category:** General\
**Created:** [4 June 2021 07:03 UTC](https://discourse.nodered.org/t/slow-down-incoming-values-when-the-changes-are-not-major/46689 "2021-06-04T07:03:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [4 June 2021 07:03 UTC](https://discourse.nodered.org/t/slow-down-incoming-values-when-the-changes-are-not-major/46689/1 "2021-06-04T07:03:34Z")

</div>

Hello,  
I get values for current from my Siemens PLC into nodered every second. I would like to slow down the input when the chnages are not that high. The actual value is jumping between 15.1 and 15.8 A. I dont need to show this changes, because I use cloud to write the values in and would like to keep the traffic not very loaded.

I was experimenting with rbe combining with smooth nodes. But I didnt manage to achieve the desired result. If I tell the smooth node to return the mean value after more than 3 values, then my programm doesnt work, because when I stop the charging the value drops in 3-4 steps from 15 to 0 and it can happens that the last value 0 dont get recognized.

So I need something to slow down the value if the changes are \<1A and speed up if its \>1A.

Is it possible?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 June 2021 07:19 UTC](https://discourse.nodered.org/t/slow-down-incoming-values-when-the-changes-are-not-major/46689/2 "2021-06-04T07:19:46Z")

</div>

Maybe the rbe node has a mode you can use ?

---

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [4 June 2021 07:23 UTC](https://discourse.nodered.org/t/slow-down-incoming-values-when-the-changes-are-not-major/46689/3 "2021-06-04T07:23:29Z")

</div>

I was trying to smooth 3 values and then place rbe behind it. But the value is "jumping around" so rbe doesnt trigger.

I have another idea. I can check with the smooth node for deviatation and then block all values \<1 with switch node. But with this solution I need to construct something to pass the original value to the cloud, not deviatation.

---

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [4 June 2021 07:30 UTC](https://discourse.nodered.org/t/slow-down-incoming-values-when-the-changes-are-not-major/46689/4 "2021-06-04T07:30:08Z")

</div>

ok, I see rbe node had exactly the function, that I need: "block unless value change is greater than:".

Thank you. Thats a bit embarrassing now 🙈

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 June 2021 07:30 UTC](https://discourse.nodered.org/t/slow-down-incoming-values-when-the-changes-are-not-major/46689/5 "2021-06-18T07:30:32Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
