Provide initial values from a API

What do you want to achieve?

I want to change the values of components when my project starts.
I will fetch values from an API and I need to update labels, arch and switch

What have you tried so far?

I don’t know how to get references to the objects from my setup code

If you want to adjust a normal widget you can just reference it with a name like ui_<widget_name_form_squareline>. E.g. lv_label_set_text(ui_Label_1, "Hello");

Note that spaces are replaced by underscore.

To get an element of a component take a look at this part of the docs.