Music from headphones (connected to phone) to Sonos speaker?

Hey, I am hoping for some help.
I am trying to find a way for the music to go from my headphones (streaming from my phone) to my speaker (Sonos) when I arrive home. I can see in automations there is a Speaker Companion option, which I have tried using. I tried to set up to my phones arrival at home to start the speaker playing but it didn’t work. I have the settings turned on to allow location services, presence detection and “offer to play on device”. Any ideas welcome…