Got it

and learned a few things on the way.
On the flow (example is LOL03) added the change node and set it to globaland LOL03State

Added a link out node to the HTTP requests node and called that LOL03 state and a link in to the WebSocket out node and called that LOL03 send state.
So it now looks like the picture below.
On the two for all flow, where the
all on and all off buttons are created, added the change node and let that set the msg payload to global LOL03State.
The switch node, connected after that change node to the
all off button for example, looks for an On string.
And sets the next change node to the string I like to send.

The link node connect to the WebSocket out node link
LOL03 send state on the LOL03 flow does the rest.Thanks a lot to
for the flow/idea that made this challenge to a success.
And
for point me to the link node that also helped me in this.
Learned again a few things and without you kind people that made suggestions, give ideas and spend some time to help I probably couldn't make it this way.
Thank you all.

