Render a Jinja template
ha_render_templateRender a Home Assistant Jinja2 template on the server to read or compute multiple entity values at once. Returns the rendered string for state-based calculations.
Instructions
Render a Home Assistant Jinja2 template server-side. Args: template, variables (optional). The cheapest way to read or compute many values at once, e.g. "{{ states('sensor.kitchen_temperature') }}" or "{% for s in states.light %}{{ s.entity_id }}: {{ s.state }}\n{% endfor %}". Returns: the rendered string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | Jinja2 template | |
| variables | No | Variables available to the template |