Render a Jinja template
ha_render_templateRender Home Assistant Jinja2 templates against live state and return the result, so you can test template sensors, automation conditions, and value_templates before deploying.
Instructions
Render a Home Assistant Jinja2 template against live state and return the result. Ideal for iterating on template sensors, automation conditions and value_templates until they produce the expected output. Example: "{{ states('sensor.outside_temp') | float < 5 }}".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | The Jinja2 template to render. | |
| variables | No | Optional variables made available to the template. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |