Relay switching issue between 2 sources

You need to explain how your grounds are wired.