# New question with \`smooth\` node

**URL:** <https://discourse.nodered.org/t/new-question-with-smooth-node/51901>\
**Category:** General\
**Created:** [6 October 2021 01:00 UTC](https://discourse.nodered.org/t/new-question-with-smooth-node/51901 "2021-10-06T01:00:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [6 October 2021 01:00 UTC](https://discourse.nodered.org/t/new-question-with-smooth-node/51901/1 "2021-10-06T01:00:23Z")

</div>

Ok, I'm still trying.

The other day I asked about how to do something and I was pointed towards the `smooth` node.

I redacted a question I posted on how to `reset` it. (Didn't read all the docs)  
But that raised a _problem_ as I see it.

I want it to show the MINIMUM value.

That's easy enough if/when a series of data is sent through it.

But what happens when it is **reset**?

`minimum` is a problem.

I send the `reset` message (`msg.reset = true`) and set `msg.payload = 0` which is fine for the MAX and AVG (sorry: mean) values.

But what about MINIMUM - or **reset** in general?

Sending a `0` it sort of skews the MAX and MEAN values too.

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [6 October 2021 01:36 UTC](https://discourse.nodered.org/t/new-question-with-smooth-node/51901/2 "2021-10-06T01:36:00Z")

</div>

> [@Trying\_to\_learn](#):
>
> But what happens when it is **reset**?

Hello Andrew,  
When you reset it, the smooth node just "forgets" the last MIN value it had stored and starts the monitoring over. you shouldn't send it a `msg.payload = 0`

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [6 October 2021 02:05 UTC](https://discourse.nodered.org/t/new-question-with-smooth-node/51901/3 "2021-10-06T02:05:41Z")

</div>

But......

(I'm about to shoot myself in the foot I'm sure)

The output of this one (and the other two which show MAX and MEAN) are shown in a display.

Um.... Ok. Yeah. You are right.

I guess the `trying` in my name is still very valid.

Ok, but quickly..... What do I send to the display nodes so they are wiped?  
(I put a `change` node and it was _triggered_ by the `reset` message and injected a ` ` into the display node. OCD sucks) 😉

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [6 October 2021 02:25 UTC](https://discourse.nodered.org/t/new-question-with-smooth-node/51901/4 "2021-10-06T02:25:21Z")

</div>

i had to test it also 🙂 .. yes .. sending a `msg.payload = ""` to ui\_text, clears it.

---

<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:** [20 October 2021 02:25 UTC](https://discourse.nodered.org/t/new-question-with-smooth-node/51901/5 "2021-10-20T02:25:30Z")

</div>

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