Confused with my If Condition rule

I’m trying to set a rule so that if my doorbell detects motion, it will turn on the front porch light with the condition that it will only do so between sunset and sunrise.

This is my rule but somehow it doesn’t work. My light won’t turn on. Any idea why?

The time can’t simultaneously be after sunset and before sunrise.

You would need to switch it to an OR condition (any).

Ah ha…I understand now. I didn’t account for the fact that after 12 a.m., it is considered as the next day. Thank you for the visual explanation. That helped a lot.

1 Like