Troubles to play AppleTV output on Sonos speakers through triggered by an event

Hello,

In the meantime, I could realize much automation with the help of ChatPPT or MS Copilot, but with this automation, I just don’t reach my goal no matter how long I try.

Automation: The trigger is to switch on a Samsung TV with a connected AppleTV. I detect the switch on through my AVM router and the AppleTV integration.
Action: I have various Airplay and Sonos speakers in the house, and as soon as the TV switches on, two Sonos ceiling speakers (via Sonos Amps) and two HomePods should ungroup from their current jobs and play the TV sound from the AppleTV.
When switching off, the group is dissolved again (this part is simple)

I can’t get the Apple TV audio output to the speakers. This may be simple, but everything is failing now.

Could someone who has experience with this or has any ideas on how to achieve this setup, please share her / his insights?

Thanks for any help

1 Like

If you find a solution, please let me know. I’ve been trying to do this, myself, with no success. The only thing I’ve come up with is to manually set the output from the Apple TV to my main Sonos speaker. When that speaker starts playing, it triggers an automation to pause all the other speakers, join them to the main speaker and set the initial volume. Ideally, I would like for this to take place without manually selecting the initial Sonos speaker from the TV, but no luck so far.

Selecting just one of the Sonos speakers and allowing HA to do the joining is more reliable and groups them more quickly than selecting all of the speakers from the ATV. When selecting multiple airplay speakers from the ATV, inevitably, one of the speakers will not connect. The TV will sit there and spin around before eventually presenting an error message that it can’t connect to that speaker. Joining them with HA means you can repeat the action until they all connect.