Help combining string messages

I use node-red to format and send text messages to my phone (via twilio) about the status on my house and HA.

As I am paying per text message I would like to combine some of the text messages using the join node. Goal would be that when a message is received it sits in the join queue for 20 seconds. If no other message is received then the join received a complete command and the message continues on to the rest of the chain and out to twilio. If a message is received within the 20 seconds, the message is joined using /n and then the timer is reset to wait another 20 seconds. (I.E. the message block is only forwarded on if there is a 20 second period of no text messages).

Any thoughts on how to do this cleanly?

Hi and welcome.

Use a trigger node set to send nothing and 20 seconds later send boolean true, Also set it to extend delay if new message arrives. After the trigger move the boolean to msg.complete. Then join as normal but also connect a wire to the trigger node. If no message is received for 20 seconds the trigger will initiate the msg.complete.

Just for info, you can use telrgram or pushover for this rather than text messages, with no charge.

Well - you rock! That solution worked perfectly! Also I am always open to "extra info" thanks for the tip on pushover and telegram. I looked them up. Not sure they work for me as I am not looking to get alerts or notifications to an app but instead looking to get actual text messages to my phone number. Let me know if I misunderstood those two programs!

If you have them installed on your phone what is the difference, you still receive a notification on your phone.

Hi @LionTurtle

Pushover - its a text message in the visual sense - just with a few more bells.
Pushover is a one-time cost of $5

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