# Question for evaluation rfxcom-out

**URL:** <https://discourse.nodered.org/t/question-for-evaluation-rfxcom-out/5377>\
**Category:** General\
**Created:** [1 December 2018 13:58 UTC](https://discourse.nodered.org/t/question-for-evaluation-rfxcom-out/5377 "2018-12-01T13:58:40Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [1 December 2018 16:30 UTC](https://discourse.nodered.org/t/question-for-evaluation-rfxcom-out/5377/22 "2018-12-01T16:30:59Z")

</div>

> [@ukmoose](#):
>
> so you could have a standard (non dashboard) switch node that only passes on a message if it is for the correct light (your hex code bit) followed by a change node where you set the msg.payload to the On message that you require

As yet we haven't managed to determine how to tell which key has been sent.

---

<div class="post-metadata">

**Author:** ![maxwellhadley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxwellhadley/32/7827_2.png) [@maxwellhadley](https://discourse.nodered.org/u/maxwellhadley)\
**Post date:** [3 December 2018 09:10 UTC](https://discourse.nodered.org/t/question-for-evaluation-rfxcom-out/5377/23 "2018-12-03T09:10:46Z")

</div>

Now I can paste your flow into Node-RED, I think I can see the problem: it is not the bug we found yesterday, because the hex code 0x415530 does not contain any of the characters `a`-`f`.

Instead, you have not enabled message filtering on the rfx-PT2262-in node, so it is responding to all data values. Only the intended hex code will generate a message with your selected topic **redbutton** & payload **on** , but all other data values will still generate output messages containing the **raw** data. In turn, your function node will send the 'on' command to your MiLight for every data value.

You need to enable message filtering in the rfx-PT2262-in node, so that it only responds to messages with the **redbutton** topic:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8e330872404fbebc84b8bd8f9f69da74030f0438.png)

With this change, I think you will no longer need your function node, as the message payload will be **on** directly fro the rfx-PT2262-in node

I hope this helps!

---

<div class="post-metadata">

**Author:** ![Florian](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@Florian](https://discourse.nodered.org/u/Florian)\
**Post date:** [3 December 2018 15:53 UTC](https://discourse.nodered.org/t/question-for-evaluation-rfxcom-out/5377/24 "2018-12-03T15:53:52Z")

</div>

Hello Maxwell,

I had already tried this. But the value "redbutton" is marked red and the node has a red triangle.

![redbuttonred](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8514874c8ee1b63e48112131d87c0316fc254f47.png)

What am I doing wrong here?

Thank you very much for your help and patience!

---

<div class="post-metadata">

**Author:** ![maxwellhadley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxwellhadley/32/7827_2.png) [@maxwellhadley](https://discourse.nodered.org/u/maxwellhadley)\
**Post date:** [3 December 2018 18:27 UTC](https://discourse.nodered.org/t/question-for-evaluation-rfxcom-out/5377/25 "2018-12-03T18:27:35Z")

</div>

It seems the Address must start with `PT2262/` - I had forgotten about that. You need to change `redbutton` to `PT2262/redbutton`, both on this screen and in the Topic field of the device list entry for your data value.

On the help screens, I say that topics _should_ start with `PT2262/`. I will change this to **must**!

[Previous page](https://discourse.nodered.org/t/question-for-evaluation-rfxcom-out/5377.md?page=1)
