Expand group select attr includes unavailable sensors

I have put what you suggested inside the for loop. It is working! No problem, thanks (: