# Node Red Filter an Event \> node settings needed

**URL:** <https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982>\
**Category:** General\
**Created:** [20 January 2022 17:10 UTC](https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982 "2022-01-20T17:10:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harryx99](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/harryx99/32/53539_2.png) [@Harryx99](https://discourse.nodered.org/u/Harryx99)\
**Post date:** [20 January 2022 17:10 UTC](https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982/1 "2022-01-20T17:10:27Z")

</div>

Hello.

I'm a beginner of Node-Red and I just a little help here.

I have a power monitor node with the two events below. After this node I created a message with cast node. Actually I get two messages from the power monitor node, when it's start and when it's stopped. But I just need a "signal" when it's stopped (event: "stop").  
How can I filter this so that my message became active when the event: "stop" appears?

I tried switch node without success. Could somebody help me?

regards Harry

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d43a3d92170ac468df3939809459240cbe6d59ec.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/3/f3dfa55bea57911ba7d59d257f8339300c4cd81f.png)

---

<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:** [20 January 2022 17:15 UTC](https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982/2 "2022-01-20T17:15:09Z")

</div>

> [@Harryx99](#):
>
> How can I filter this so that my message became active when the event: "stop" appears?
> 
> I tried switch node without success. Could somebody help me?

See below for reference, but in short - copy the path to the `event` property, paste it into a switch node property, check that it `==` `stop`

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

[https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

* * *

> [@Harryx99](#):
>
> I'm a beginner of Node-Red and I just a little help here.

As a new user, I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![Harryx99](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/harryx99/32/53539_2.png) [@Harryx99](https://discourse.nodered.org/u/Harryx99)\
**Post date:** [20 January 2022 17:39 UTC](https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982/3 "2022-01-20T17:39:24Z")

</div>

Thanks for links, I'll watch it later 😉

the switch node looks now:

but now I don't get any event through?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/f/0f7924039adde9aa779ad90ff85c384333d315fe.png)

---

<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:** [20 January 2022 17:52 UTC](https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982/4 "2022-01-20T17:52:44Z")

</div>

Put msg.payload.event in the top "property" field

In the list, add an `==` entry set for `az` string with `stop` in the value field.

Also, read the built in help and watch the videos as this kind of thing is covered there.

---

<div class="post-metadata">

**Author:** ![Harryx99](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/harryx99/32/53539_2.png) [@Harryx99](https://discourse.nodered.org/u/Harryx99)\
**Post date:** [21 January 2022 16:34 UTC](https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982/6 "2022-01-21T16:34:52Z")

</div>

> [@Steve-Mcl](#):
>
> payload.event

Looks good now.  
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:** [22 March 2022 16:35 UTC](https://discourse.nodered.org/t/node-red-filter-an-event-node-settings-needed/56982/7 "2022-03-22T16:35:36Z")

</div>

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