Alarm hysteresis