Turn On Outlet when Sonos is Playing

I am trying to find a SmartApp or some type of rule or function that will allow an outlet to turn on when Sonos is Playing audio.

Basically, I have a Z-Wave outlet with an LED Bias Light for my TV plugged into it and a Sonos Playbar.

I want the Z-Wave outlet to turn on when the Sonos Playbar is in the Playing state and off when it’s not in the Playing state.

If anyone has any ideas or suggestions, I’d appreciate it.