How to create a BP Light/Lamp that turns on/off automatically at day/night cycle

A pic which would work :

where daylight and nightlight are = to the value when you want light of or on.