Use of variables in configuration.yaml

Try this:

        target:
          entity_id: "{{ states('variable.thermroom') }}"