Motion sensor activate light only during daylight

i am strugeling with an automation in node red that switch on the light by motion sensor during day light, between sunset and sunrise

I use this:


This is what i made