Sony Bravia State Automation

I recently purchased a Sony Bravia 8 TV. I’m trying to put together an integration to turn on the lights when I pause a show and turn them back off when I play again.

So far I’m struggling to find a good way to get the current state. Android Debug Bridge always shows “idle” since it doesn’t seem to report the source or current app correctly. The Bravia integration only seems to show on or off and not playing/paused. Google Cast shows for some apps but not others (Netflix is always playing and HBO Max doesn’t seem to report any status).

Has anyone had any luck getting a dependable play/pause/idle state for a Bravia?

Thanks for the additional information. I have used media_player properties to set custom state rules for the ADB integration in the past. It doesn’t seem to work for the Sony though because no source or app is reported in many cases.

I’ll have to do some investigating to see if I can come up with a way to use the various integrations to cobble a working automation together.