CoRE can easily do this… if you need help…
IF (motion_sensor changes to active) { using light turn on wait 30 seconds turn off }