Create an array of components

What do you want to achieve?

I need to create a series of labels and switches, as in the picture attached.
What is the best way?
The number of labels and their texts come from an API call.
Each switch will active an aircon zone.

Screenshot or video

You can do it from code after ui_init() using the API of the components.