You don’t need relays to do this, if you power the remote with the ground and 3v3 from the controller, you can just pull down the buttons to simulate a button press. I recently did the same here: