Arlec Motion sensor issues

Hi guys,

I have been tinkering to with my pendant lights in my kitchen.

I would like them to turn them selves off after my motion sensor does not detect motion after 5 minutes.

Do I have the below automation correct?

I am finding the still want to randomly turn off even with a presence in the area.