# How to select payload from specific button (tasmota node)

**URL:** <https://discourse.nodered.org/t/how-to-select-payload-from-specific-button-tasmota-node/63297>\
**Category:** General\
**Created:** [31 May 2022 10:59 UTC](https://discourse.nodered.org/t/how-to-select-payload-from-specific-button-tasmota-node/63297 "2022-05-31T10:59:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferbulous](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ferbulous/32/53649_2.png) [@ferbulous](https://discourse.nodered.org/u/ferbulous)\
**Post date:** [31 May 2022 10:59 UTC](https://discourse.nodered.org/t/how-to-select-payload-from-specific-button-tasmota-node/63297/1 "2022-05-31T10:59:32Z")

</div>

Hello,  
I'm using tasmota node for my 2 gang switch  
How can I pick up the payload specifically from each button?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/63d4f631b19d37550da4f0e61893b9785e080f1e.png)

> **[tasmota node - Pastebin.com](https://pastebin.com/kxhfchVZ)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

For the moment, I'm just using switch node to receive 'single','double' payload and so on but obviously both button gets detected.

---

<div class="post-metadata">

**Author:** ![Napest](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/napest/32/55656_2.png) [@Napest](https://discourse.nodered.org/u/Napest)\
**Post date:** [31 May 2022 13:52 UTC](https://discourse.nodered.org/t/how-to-select-payload-from-specific-button-tasmota-node/63297/2 "2022-05-31T13:52:54Z")

</div>

Hi,

can you provide the whole msg object items? Topic would by the key I guess. Just double click debug node, from dropdown select the whole msg object and post it with both buttons clicked again.

Maybe you will see the difference in messages, which could be used to the switch node.

Stepan

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [31 May 2022 23:36 UTC](https://discourse.nodered.org/t/how-to-select-payload-from-specific-button-tasmota-node/63297/3 "2022-05-31T23:36:47Z")

</div>

In the debug you can see that each button has its own topic eg button2 so you can use that.

---

<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:** [30 July 2022 23:37 UTC](https://discourse.nodered.org/t/how-to-select-payload-from-specific-button-tasmota-node/63297/4 "2022-07-30T23:37:39Z")

</div>

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