If your chameleon closes it's eyes through the day, it may very well be a sign that the chameleon is sick. Healthy chameleons eyes are open and alert for the whole day - they are diurnal and only sleep when it gets dark.
Sadly, chameleons are often really sick by the time their owners notice...