# Importing a flow without the configuration node

**URL:** <https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787>\
**Category:** General\
**Created:** [11 November 2023 15:32 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787 "2023-11-11T15:32:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevegroom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevegroom/32/19591_2.png) [@stevegroom](https://discourse.nodered.org/u/stevegroom)\
**Post date:** [11 November 2023 15:32 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787/1 "2023-11-11T15:32:58Z")

</div>

Hello,  
when I copy a flow from one machine to another I follow these steps:

test system with customised and tested configuration node ( home assistant in this case)

live system export a flow - sub flows and configuration nodes are included - save to file or clipboard - import flow to new tab on the test system.

At this point in time I have a test system with two configuration nodes for home assistant. One is working with one connected node and the other is not working with around 50 connected nodes.

How to I change all the nodes to use the working configuration - currently I open each node and change the server - not the most efficient, and I'll have to repeat that if I want to bring the updated flows back in to my live system..

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 November 2023 17:38 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787/2 "2023-11-11T17:38:18Z")

</div>

You could load the flow file using file read, Then us JSONata or Javascript to search for each config node and alter the properties to the same as the working configs, then save using file write and restart node read.

---

<div class="post-metadata">

**Author:** ![mbonani](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mbonani/32/10631_2.png) [@mbonani](https://discourse.nodered.org/u/mbonani)\
**Post date:** [11 November 2023 22:40 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787/3 "2023-11-11T22:40:54Z")

</div>

You can use this [tool](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/scrubber/) to easily "Replace Home Assistant server id" in your exported nodes. The home assistant nodes developer created it.

---

<div class="post-metadata">

**Author:** ![stevegroom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevegroom/32/19591_2.png) [@stevegroom](https://discourse.nodered.org/u/stevegroom)\
**Post date:** [12 November 2023 06:51 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787/4 "2023-11-12T06:51:01Z")

</div>

thank’s for the concept.

---

<div class="post-metadata">

**Author:** ![stevegroom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevegroom/32/19591_2.png) [@stevegroom](https://discourse.nodered.org/u/stevegroom)\
**Post date:** [12 November 2023 06:56 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787/5 "2023-11-12T06:56:52Z")

</div>

This will be a real time saver for now and the rest of the site looks very useful.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 November 2023 09:56 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787/6 "2023-11-12T09:56:33Z")

</div>

Could you use a system environment variable for this? Then the same flow would work on any system, provided the env had been setup.

---

<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:** [26 November 2023 09:57 UTC](https://discourse.nodered.org/t/importing-a-flow-without-the-configuration-node/82787/7 "2023-11-26T09:57:22Z")

</div>

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