Usage example:
I’m trying to template my setup and want to use jinja templating for
that. I have 4 sensors which are exactly the same, except for the name
which changes for each sensor. The definitinion is in separate file
sensor1.yaml, sensor2.yaml, etc. I’m trying to use something like
following, but it fails
name: “{{ self._TemplateReference__context.name }}”
(and similar for state_topic:, availability_topic:)
Thanks, seems to be the closest thing that can be done with homeassitant.
I’m just so used to saltstack and erb where the whole file is jinja and it’s so natural to make whatever sophisticated yet simple configuration you need with fors and ifs.