# How to join two payloads, when one is intermittent?

**URL:** https://discourse.nodered.org/t/how-to-join-two-payloads-when-one-is-intermittent/11894
**Category:** General
**Created:** [5 June 2019 23:18 UTC](https://discourse.nodered.org/t/how-to-join-two-payloads-when-one-is-intermittent/11894 "2019-06-05T23:18:16Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [12 June 2019 21:40 UTC](https://discourse.nodered.org/t/how-to-join-two-payloads-when-one-is-intermittent/11894/21 "2019-06-12T21:40:15Z")

</div>

Hi, The msg.topic within each stream are static (hard coded) , only the payload updates. Here’s the function within the ‘sensor status’ (which captures things like if the sensor’s been opened or closed) flow.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/9cba9bba74a7801af5b727a40b029707c1d4e081.jpeg)

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [12 June 2019 22:19 UTC](https://discourse.nodered.org/t/how-to-join-two-payloads-when-one-is-intermittent/11894/22 "2019-06-12T22:19:45Z")

</div>

I'm with @tonylane26, using saved flow context, IMO although not the most efficient, it seems a much easier solution to implement.

---

<div class="post-metadata">

### Author: ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)
#### Post date: [12 June 2019 23:19 UTC](https://discourse.nodered.org/t/how-to-join-two-payloads-when-one-is-intermittent/11894/23 "2019-06-12T23:19:30Z")

</div>

Here’s an example of how it’s working today, and as @Colin mentioned I don’t think there’s much I can do while my HA Controller is acting as the proxy for the Alarm Panel connection.

Here’s an example of what’s getting logged via the debug.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c8b2b0481d07deb93a7bd8ab96435de10537e27f.jpeg)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [22 June 2020 12:37 UTC](https://discourse.nodered.org/t/how-to-join-two-payloads-when-one-is-intermittent/11894/25 "2020-06-22T12:37:36Z")

</div>



[Previous page](https://discourse.nodered.org/t/how-to-join-two-payloads-when-one-is-intermittent/11894.md?page=1)
