How to use sonos as an automation trigger

I am trying to set up an automation, but I am not sure if it’s possible to setup what I am trying to set up.
Basically I have a Denon AVR-E300 (this is connected via LAN with a custom device handler and is working fine in the ST app) and I have a Sonos Connect. I am wanting to setup an automation which will trigger the Denon to power on (via network) when the Sonos connect starts playing music. However, the only thing I can add (as a trigger) is when the Sonos is muted or unmuted. Is there a way for ST to detect that the Sonos Connect is playing music? I know I can see the current status of what’s playing in the app when I go into that room. So why can’t I use it for a trigger?

Basically what I am trying to accomplish is for my dad not to have to open multiple apps to start playing music as sometimes the Denon app does not work too good.

So this would be what I am trying to setup but can’t make it happen:
IF: {Pool Sonos Starts playing}
THEN: {Turn on Denon AVR-E300}

I’m sure this post is all over the place so any help is greatly appreciated.

One thought is you could use WebCoRE to subscribe to the Volume attribute on your Sonos and if it’ set to 0 then trigger your Denon command.

@RBoy, I think that is not exactly what @nickm2 wanted to do, but WebCoRE might have an option to subscribe to a state change of the playbackStatus (of the mediaPlayback capability) to “play”, and then trigger the Denon.

Have they implemented the new capabilities in WebCoRE? If yes, then that would be the easiest option.

Hey guys,
I completely forgot about WebCoRE. I have it setup for other things, but completely forgot about it.
I will attach an image of the script that I used to make this work, just in case anyone else was looking to do something like this.

Thanks for the help!

1 Like