# Limit a signal or payload?

**URL:** https://discourse.nodered.org/t/limit-a-signal-or-payload/37911
**Category:** General
**Created:** [23 December 2020 10:32 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911 "2020-12-23T10:32:33Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)
#### Post date: [23 December 2020 10:32 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/1 "2020-12-23T10:32:34Z")

</div>

Hello,

Does anyone know a solution for my problem:

An "mqtt-in" sends a String: "ON" every 8 seconds. This activates an "openHAB\_Switch\_Item". If the transmission is interrupted by "mqtt-in" for more than 20 seconds, a "trigger node" sends a String: "OFF" and the "openHAB\_Switch\_Item" is switched off.

That works and it's all OK!

Which node do I have to put between "mqtt-in" and "openHAB\_Switch\_Item" so that an "ON" is only sent **once** and not every 8 seconds? And how do I have to configure this node?  
So sends "mqtt-in", then once "ON" until the "trigger node" "OFF" switch. Sends "mqtt-in" again, then again "ON" etc.

Do you understand what I mean?

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6aa02df6714558a8cad5a844d70d35aac8916928.gif)

```auto
[{"id":"66b37773.104628","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"6d48a4d2.67b09c","type":"inject","z":"66b37773.104628","name":"MQTT Broker","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":570,"y":420,"wires":[["8afbb924.857ce8","d1901a6c.7558a8"]]},{"id":"8afbb924.857ce8","type":"openhab2-out","z":"66b37773.104628","name":"openHAB Switch Item","controller":"","itemname":"GTag_NR_gruen","topic":"ItemCommand","payload":"","x":1110,"y":420,"wires":[[]]},{"id":"d1901a6c.7558a8","type":"trigger","z":"66b37773.104628","name":"","op1":"","op2":"OFF","op1type":"nul","op2type":"str","duration":"20","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":840,"y":360,"wires":[["8afbb924.857ce8"]]}]

```

Thank you and have a healthy Christmas

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 December 2020 10:49 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/2 "2020-12-23T10:49:16Z")

</div>

> [@Steinspiel](#):
>
> Which node do I have to put between "mqtt-in" and "openHAB\_Switch\_Item" so that an "ON" is only sent **once** and not every 8 seconds

An RBE node should do the job.

PS, did you make that graphic (or find it)?

---

<div class="post-metadata">

### Author: ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)
#### Post date: [23 December 2020 12:54 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/3 "2020-12-23T12:54:57Z")

</div>

> [@Steve-Mcl](#):
>
> An RBE node should do the job.

The "rbe-node" is great! 🙂  
Thanks, it works great. That's exactly what I wanted.

> [@](#):
>
> PS, did you make that graphic (or find it)?

I made the graphics myself, I think a picture explains it better.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 December 2020 14:01 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/4 "2020-12-23T14:01:01Z")

</div>

> [@Steinspiel](#):
>
> I think a picture explains it better.

It does. How did you make it (if you dont mind)?

---

<div class="post-metadata">

### Author: ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)
#### Post date: [23 December 2020 17:22 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/5 "2020-12-23T17:22:33Z")

</div>

> [@Steve-Mcl](#):
>
> It does. How did you make it (if you dont mind)?

That with the picture is quickly explained:

- a screenshot of the Node-Red Flow -\>
- in GIMP a "\*.png" with transparent background was created from it -\>
- rendered an "arrow sign animation" with BLENDER [https://www.youtube.com/watch?v=C9ZVSxzh6JA](https://www.youtube.com/watch?v=C9ZVSxzh6JA) -\>
- "_.png" and animation with text added in a video editor and a "_.mp4" video created -\>
- the video converted into an animated GIF with Instagiffer [https://instagiffer.com/](https://instagiffer.com/) -\>
- uploaded the "\*.gif" to Imgur [https://imgur.com/](https://imgur.com/) -\>
- added the Imgur "BBCode" to the forum post

If you have any further questions, feel free to ask ...

a good evening

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 December 2020 17:25 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/6 "2020-12-23T17:25:29Z")

</div>

Thats quite some task - i thought there was some nice and easy web site or application 😉

PS, there is no need for last 2 steps (you can drag and drop the gif straight into the reply)

* * *

Thanks for the reply.

---

<div class="post-metadata">

### Author: ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)
#### Post date: [23 December 2020 23:17 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/7 "2020-12-23T23:17:27Z")

</div>

> [@Steve-Mcl](#):
>
> PS, there is no need for last 2 steps (you can drag and drop the gif straight into the reply)

Oh I did not know that!  
I will try it...

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [23 December 2020 23:20 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/8 "2020-12-23T23:20:54Z")

</div>

In fact if the image data is in your clipboard, you can paste that straight into a reply too. (i.e. i often use greenshot or ImageX to do an screenshot image snippet, annotate it, then copy+paste it straight into a reply

e.g.. no files were hurt in the making of this clipboard screenshot ...

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7d9fcf7c419a8faba359df8078ad2bdd02460dd1.png)

---

<div class="post-metadata">

### Author: ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)
#### Post date: [24 December 2020 10:23 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/9 "2020-12-24T10:23:37Z")

</div>

Moin,

> [@Steve-Mcl](#):
>
> you can paste that straight into a reply too.

It's a very cool method!  
I will use them in the future ...  
Thank you and I wish you a happy and healthy Christmas...

---

<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: [22 February 2021 10:23 UTC](https://discourse.nodered.org/t/limit-a-signal-or-payload/37911/10 "2021-02-22T10:23:41Z")

</div>

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