# Efficient way of replicating flows

**URL:** https://discourse.nodered.org/t/efficient-way-of-replicating-flows/96198
**Category:** General
**Created:** [23 March 2025 17:21 UTC](https://discourse.nodered.org/t/efficient-way-of-replicating-flows/96198 "2025-03-23T17:21:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aperture1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aperture1988/32/40681_2.png) [@aperture1988](https://discourse.nodered.org/u/aperture1988)
#### Post date: [23 March 2025 17:21 UTC](https://discourse.nodered.org/t/efficient-way-of-replicating-flows/96198/1 "2025-03-23T17:21:47Z")

</div>

Hello Guys,

I am in the process of adding some monitoring for some sensors within my smart home, I have created the following flow which is working well and triggers various things within Home Assistant. The issue I have is I have 30 or so more sensors to set this up for.

My question is, is there a way I can essentially template the flow, defining a string of text which will dynamically update all the nodes within my flow so I can easily copy and paste and reuse it without the task of manually going into each node and changing the text and entities IDs

Something like  
Binary\_sensor.sensorname\_offline\_event  
Binary\_sensor.sensorname\_offline\_event\_notification\_automation  
"Sensor sensorname has gone offline"

etc

thanks in advance

 ![Screenshot 2025-03-23 at 17.12.37](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c303dcb8191b331c94309eaefbc9bdec60633ee.png)

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [23 March 2025 17:27 UTC](https://discourse.nodered.org/t/efficient-way-of-replicating-flows/96198/2 "2025-03-23T17:27:36Z")

</div>

Have a look at subflows, these are basically templates of groups of node with "environment variables" that can be used to parameterise them.

> **[Subflows : Node-RED](https://nodered.org/docs/user-guide/editor/workspace/subflows)**

---

<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: [21 June 2025 17:28 UTC](https://discourse.nodered.org/t/efficient-way-of-replicating-flows/96198/3 "2025-06-21T17:28:31Z")

</div>

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