Flow to dimm the lights when Netflix app is opened on tv

I want to dimm some of the lights when I watch a movie. this should happen when I start Netflix or Amazon prime had the following flow with a samsung frame tv but the trigger is not owkay. it works when I manually klik on the If trigger. any ideas

I think the tv doesn’t report that quick, right after it’s turned on, if a Netflix is running.
I think it’s better to do something like this

-an app was started
-an app was changed)
-app name is Netflix
-app name is Prime video
-turn off light

(And an app doesn’t start when the TV is off, so no need to check if it’s on imho)