Stop media_player after specific time

Hi everyone,

I’ trying to build an automation for my kids which stops the media_player (Apple TV 4K) after a specific time. AFAIK there is no option to “block” the device after the timer runs out, so I thought that, if the kids resume playback, HA could send a notification so I can personally tell them to stop.

Does anyone have something like this built already?

Cheers,
Andrei

You can always build such an automation.
Trigger on media_player is playing, condition timer has run out, action stop media_player