Trigger flow on ipad unlocked

Hey guys,

I have the following situation. My girlfriend has a ipad she uses for watching tv in bed occasionally. I want to automate sonos to play for half an hour when we went to bed, but want to make it stop playing if she unlocks the tablet.

I did try it with an IOS automation “When app is started” > start flow (flow sets a variable to YES) but since the does not close off the app all the time, it does not work.

Is there a way to start the flow on Homey, when the ipad unlocks itself/shows screen/starts playing a videofeed or something?

Might be a workaround true siri, google home or something im missing here.