Rules - camera and bulb

Is there a way to have a wyze bulb turn on when there is “Detect Person” from a V3 camera and then turn off after there is no motion. Think I can do this with a rule to turn off light after 1 min but then when I am using the light any other time it turns off after 1 min and that not good haha. Any ideas???