Hi @Old Goat, welcome to the Sonos Community!
Thank you for sharing how you were able to get your Sony remote working with your Sonos Ray. By disabling Bluetooth, it likely swapped the remote to IR signals, though this is just me guessing how they work as I don’t own a Sony remote.
This is also what we’d recommend if either the Sonos Arc or Beam are connected using the optical adapter, as connecting via an optical cable or adaptor means the Sonos device is only compatible with IR remotes.
I’m sure this will help other users who have the same issue and if anyone else views this thread, they can also look into the TV remote requirements for Sonos.