Automation Trigger -TV programme

Is it possible to use a TV programme title to trigger an automation?

What I’m looking to do is turn on a number of lights when a programme title containing a specific string is watched on one of the TVs.

Edit: The light settings will be contained in a script.

I should probably have been more specific.

I have the Sky Q integration, the Rogerselwyn version, and on the dashboard it shows current channel and programme name.

The programme name is a variable called live_tv and I want to use the value of that to trigger a script.

As the variable isn’t an entity itself I’m assuming this isn’t possible, or is it?