Lights automation wiz and tuya

Hello,

I wonder if anyone can help, I have tuya movement sensor, wiz lights, I would like to switch on lights when movement is detected, turn of after 3-5mins but only when it is dark, is that possible?

Can’t do it using ifttt

Thanks

Paul