Refresh group from input_select is possible?

I did something similar with group visibility and automation. The idea is to put each sensor in its own group and put all the groups on the front view but keep them hidden. I then automated their visibility depending on the state of the sensor. In your case, you could put all the groups that you made into another group and then automate their visibility based on a input select.