Sonoff T0 switch and nodered

You need to provide more information.

What does your flow do?
How are you seperating the msgs from the two switches?
How are you keeping track of the status of each light?

It would be helpful - if your flow is not too large - to supply a copy of the flow (read this first)