[SOLVED] Turn on light in the morning, if sun is down

Go it, sorry…here a design pattern that seems to apply: