Potential Free Relay

Above is what I want to do, but not sure how I would combine two devices into one ‘device’ in Homey (for Alexa Control etc)