added switch on/off + hour in day dependency