Home Assistant entities - Switch on sub-flow

I’m building a subflow to control lights. I’m trying to use a “Home Assistant Entities” switch node.

I was able to make it work in a flow with no issues, but my problem is that when I put it into a subflow and create copies of that subflow, the switch remains the same for all copies and does not create a new switch for each copy. If I toggle the switch from Home Assistant, all the subflows toggle.

How can I make the entities unique for each flow?

I have tried searching for documentation about the Node Red Companion Integration but couldn’t find anything.

You would have to change the scope of the entity config node inside the subflow to point at the subflow not all flows.

The dropdown is at the bottom of the editor window when editing the entity config.

Thanks @Kermit! I was making the whole flow first and then transforming it into a subflow. That was the problem.
Creating and configuring the entities inside the subflow solved my problem.

Thanks again!