# Remember report by exception after deploy

**URL:** <https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364>\
**Category:** General\
**Created:** [27 May 2021 19:27 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364 "2021-05-27T19:27:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![psalibe](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@psalibe](https://discourse.nodered.org/u/psalibe)\
**Post date:** [27 May 2021 19:27 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364/1 "2021-05-27T19:27:51Z")

</div>

Hi All,

I have a general runtime variable that sends a 1 when it is on and a 0 when the power off is requested. I have a report by exception node that will not send multiple 1's when it has been on, but this resets after I deploy. Just wondering if there is a way to keep that first 1 and not send any others until a 0 because every time I deploy it sends another 1, and my math is based off the last 1 value's timestamp so it is shortening my reported runtimes.

Thanks

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 May 2021 08:46 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364/2 "2021-05-28T08:46:18Z")

</div>

Why not store in in a flow variable?  
[https://nodered.org/docs/user-guide/context](https://nodered.org/docs/user-guide/context)

---

<div class="post-metadata">

**Author:** ![Ranki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ranki/32/41282_2.png) [@Ranki](https://discourse.nodered.org/u/Ranki)\
**Post date:** [28 May 2021 08:51 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364/3 "2021-05-28T08:51:04Z")

</div>

Hello @psalibe ,

does the node [node-red-node-rbe](https://flows.nodered.org/node/node-red-node-rbe) maybe cover your needs? It will pass through a value only, if it is changing.

Cheers  
Ranki

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 May 2021 09:19 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364/4 "2021-05-28T09:19:43Z")

</div>

Also the RBE node has an option to not pass on the first value received.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 May 2021 09:25 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364/5 "2021-05-28T09:25:18Z")

</div>

One way to achieve this is to enable persistent storage & use a function node to recreate the functionality of the RBE. You would store the last value, check if it's changed, release the msg if it is different.

---

<div class="post-metadata">

**Author:** ![psalibe](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@psalibe](https://discourse.nodered.org/u/psalibe)\
**Post date:** [30 May 2021 17:12 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364/6 "2021-05-30T17:12:37Z")

</div>

Of course it does, I'm using it throughout my flow 🤣 Slipped my mind... Thanks!

---

<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:** [13 June 2021 17:13 UTC](https://discourse.nodered.org/t/remember-report-by-exception-after-deploy/46364/7 "2021-06-13T17:13:13Z")

</div>

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