Automation to put Sonos speakers in surround mode

Has anybody been able to create an automation to have Sonos Beam and two other speakers in surround mode? Via the Sonos app takes too long every time.

According to the maintainer of the Sonos integration, that action doesn’t exist.