Control LED with Plex / tautulli

Hallo Forum
Im quite new to all this , so please bear with me…

I have installed plex, tautulli and Home assistant in docker / linux
For now i can make tautulli to send webhooks notification to Home assistant and turn the lights on :slight_smile: so far so good

but my problem is that , i want to turn off the light with conditions:

wait 2 minutes AFTER USER1 has stopped the movie/tvshow on a certain media(media_player.plex_chrome)

Does that make any sense?
If not please get back to me and i will try to explain it more detailed