Is it possible to set network, mqtt broker parameters with templates or global variables?

It looks like templates work only with light components. But is it possible to set network and mqtt broker parameters with templates or global variables? It could be very useful for standalone configurations.

@remro Were you able to crack this ?

I’m trying to do so, make a standalone device that can be configured to connect to a broker