automatic logic only woks from 7 to 20 h