Correct detection of dimmer values and hygro devices