Aqara Sensor - turn off lights if no motion for x seconds

Hi there,

I have the timer app and have been trying to set up a simple flow:

If there is motion a d lux less than 9 turn on light
Start timer for 180 seconds and if no motion for a full 180 second turn off the light.

Please can you suggest a solution?

Thanks

Gunay