Irritating issue with Pleg

Can someone tell me why this logic is leaving my foyer lights on in the morning when i get up?

Probably because there is no Off setting for the Sunrise Schedule. Without an Off event, it becomes true on the first morning and stays that way. As it doesn’t become true again, the Condition Sunrise1 does not fire again.

You can fix this by adding to the Schedule an OffType of Interval of, say, 00:00:10. You could also fix it by setting Repeats to On for the Condition Sunrise1.