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.

Welcome to the forums @Seba-VT

I don't think many here will have the answer - most here are not HA users.
But at a guess, I would think these nodes are using some global state object.

Other than my assumption above, you may get better answers from the HA community.

Thanks @marcus-j-davies. I'll post this question on a HA forum.

1 Like

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