So you’ve created an amazing flow, and now you want to share it with the world. How to minimize the chances of issues for those who are going to import this flow?

It’s important to keep that in mind, especially when you are sharing flows with Home Assistant nodes. Nobody wants to end up with multiple server nodes by mistake.

servers


Before sharing

If you want to share a flow, it’s a good practice to remove the part that defines the Home Assistant configuration node and the lines that reference it.

Jason Zachow (a.k.a. Kermit on Discord), the developer of node-red-contrib-home-assistant-websocket, created a tool that does that automatically for you. It also removes other info like latitude and longitude. It’s available here. Thank you, Jason!

It’s very easy to use Jason’s tool. Just paste the JSON code you exported in the upper text box, click on the ‘Scrub’ button, and in the lower text box, it will return the shareable code.


Importing flows

If you are importing flows from other people and you’re not sure if the code is clean, you can also use the tool mentioned above.