Netatmo welcome - scene - detection of persons each time action

I used the scene and virtual device described in this article netatmo welcome - Anwesenheits Status mit Fibaro HC 2 auslesen works great.

However, I need a solution that I have not been able to write. I would like Fibaro to perform an action each time a person is detected.

I need a solution for turning off the lights in the kids’ rooms, which is often turned on. I’ve been struggling with it for some time but the results are still poor.

My camera is on the first floor and the kids’ rooms are upstairs, so if the camera detects them and turns off the lights, it’ll be great.

Thanks