# Send two 1's in quick succession

**URL:** <https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104>\
**Category:** General\
**Created:** [3 May 2022 09:27 UTC](https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104 "2022-05-03T09:27:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)\
**Post date:** [3 May 2022 09:27 UTC](https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104/1 "2022-05-03T09:27:20Z")

</div>

Hi Chaps  
I have a flow to turn my Sony TV on and off using the contrib-bravia nodes but for some reason the turn off instruction requires two pulses (i.e. two 1's) to be sent before the TV actually turns off. All the other instruction (change input, turn on etc) only require one pulse. As a work around I'm trying to come up with a simple way to send two output pulses (two 1's) when a dashboard button is pressed. I've looked at dceejay's suggestion here:

[https://flows.nodered.org/flow/5c4c0f5a08d4e91ea14d](https://flows.nodered.org/flow/5c4c0f5a08d4e91ea14d)

but his flow sends one's and zero's, I need to output two 1's. I've tried fiddling with the code in the function node but I'm afraid I'm a bit lost.

Any chance of a few pointers, thanks.

---

<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:** [3 May 2022 09:37 UTC](https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104/2 "2022-05-03T09:37:47Z")

</div>

use a trigger node set to send **existing msg object** then **original msg object**

set the delay as required

---

<div class="post-metadata">

**Author:** ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)\
**Post date:** [3 May 2022 09:44 UTC](https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104/3 "2022-05-03T09:44:58Z")

</div>

Trigger node! Just the tool I needed. I had scanned through the nodes but missed this one.  
Thanks 99.

---

<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:** [3 May 2022 09:51 UTC](https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104/4 "2022-05-03T09:51:54Z")

</div>

No problem can you mark as solution if this solves your issue ?

---

<div class="post-metadata">

**Author:** ![Surefire01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/surefire01/32/71490_2.png) [@Surefire01](https://discourse.nodered.org/u/Surefire01)\
**Post date:** [3 May 2022 10:00 UTC](https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104/5 "2022-05-03T10:00:41Z")

</div>

Of course.

---

<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 May 2022 10:00 UTC](https://discourse.nodered.org/t/send-two-1s-in-quick-succession/62104/6 "2022-05-17T10:00:57Z")

</div>

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