Motion activated entity. Optional lux sensor, time of day, blocking boolean

It’s there to override the luminance check because if it is on, then presumably the luminance is going to be above the setting that would prevent the automation from running, resulting in the light not actually turning off after no more motion.