By changing the check if a normal/inverted daylightsensor should update by turning on and off, I made them workling again