switch on/off during night