# Set Switch: Easy Question

**URL:** <https://discourse.nodered.org/t/set-switch-easy-question/29393>\
**Category:** General\
**Created:** [2 July 2020 16:52 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393 "2020-07-02T16:52:48Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![nlecaude](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nlecaude/32/25_2.png) [@nlecaude](https://discourse.nodered.org/u/nlecaude)\
**Post date:** [2 July 2020 18:44 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/21 "2020-07-02T18:44:11Z")

</div>

Are you sure the string you pasted in the switch node is the exact same as the one you are expecting from MQTT ?

---

<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:** [2 July 2020 19:03 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/23 "2020-07-02T19:03:59Z")

</div>

Can you feed what it going into the switch node into a debug node and show us a screenshot. Blank out the middle of the string if necessary but leave the ends please.  
You don't need to worry about \_msgid that is just an id that is created by node red for each message.

---

<div class="post-metadata">

**Author:** ![get-command](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/get-command/32/25038_2.png) [@get-command](https://discourse.nodered.org/u/get-command)\
**Post date:** [2 July 2020 19:09 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/24 "2020-07-02T19:09:38Z")

</div>

sorry sorry sorry I took your valuable time. on closer inspection, i noticed that sometimes the value changes. this is an rf code from rf remote. I don't understand why it is different. very strange, I've never had.

@all  
thank you for your help!

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [3 July 2020 21:40 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/25 "2020-07-03T21:40:20Z")

</div>

Rolling code maybe?

> <https://www.google.com/url?sa=t&source=web&rct=j&url=https:%2F%2Fen.wikipedia.org%2Fwiki%2FRolling_code&ved=2ahUKEwiY_JTihbLqAhXM66QKHRMNAVsQFjAOegQIAhAB&usg=AOvVaw21k6r8BgymhVVGP3AkV62y>

---

<div class="post-metadata">

**Author:** ![stefan24](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stefan24/32/23075_2.png) [@stefan24](https://discourse.nodered.org/u/stefan24)\
**Post date:** [3 July 2020 21:52 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/26 "2020-07-03T21:52:21Z")

</div>

Now check, which part stays the same and use the switch node and check for "contains" instead of ==

---

<div class="post-metadata">

**Author:** ![get-command](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/get-command/32/25038_2.png) [@get-command](https://discourse.nodered.org/u/get-command)\
**Post date:** [3 July 2020 22:12 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/27 "2020-07-03T22:12:59Z")

</div>

Thank for URL

But this was not a Rolling Code. I Use this RF Devices previous with another devices. The Code was the same..

Short:  
I Use a 433 RF bridge with a mqtt in node. The received Code from bridge to node was wrong set.

---

<div class="post-metadata">

**Author:** ![get-command](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/get-command/32/25038_2.png) [@get-command](https://discourse.nodered.org/u/get-command)\
**Post date:** [3 July 2020 22:15 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/28 "2020-07-03T22:15:24Z")

</div>

Hi Stefan,

Everything is okay. It is function 🙂

Thaks you & habe a nice day

---

<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:** [17 July 2020 22:15 UTC](https://discourse.nodered.org/t/set-switch-easy-question/29393/29 "2020-07-17T22:15:25Z")

</div>

Closed on 17 July 2020 22:15 UTC

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

[Previous page](https://discourse.nodered.org/t/set-switch-easy-question/29393.md?page=1)
