The daylight sensor check contains a bug. The correct checks would be:
localtime in T00:00:00/T12:00:00, daylight eq false => dim
localtime in T00:00:00/T12:00:00, daylight eq true => bright
localtime not in T00:00:00/T12:00:00 => bright
The daylight sensor check is irrelevant
for the daily routine and therefore removed.