Can’t pause sonos

I can make an automation which plays one of my favorites on Sonos, starting when the light in the room changes to “on”
But I can’t figure out how to pause Sonos again when light in the room changes to “off”
I only get options to change bass, treble, balance, etc.
Thomas

Use the media_player.media_pause service call.