A pic which would work :
where daylight and nightlight are = to the value when you want light of or on.