Thanks again @thomasloven it looked a lot more complicated than it actually was. It works beautifully. I do have one question though as I canāt seem to create what I want (and it probably isnāt possible).
Would it be possible to have a separate file for the entities you set? For example something like this:
# lovelace_gen
!include global_config.yaml
- title: my view
cards:
- config below
and then to have this in the global_config.yaml file I have created:
# lovelace_gen
{% set light_1 = "light.plafond" %}
{% set light_2 = "light.eettafel" %}
{% set light_3 = "light.tafellamp" %}
{% set light_4 = "light.vloerlamp" %}
If there is something like this I could reuse these entities in other files instead of having to put this in every file I need them. I know that what Iāve just shared does not work! I just put it as an example to what I mean exactly. Thanks for your reply. Got most of the stuff figured out XD, this is hopefully the last question I will have to ask