Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions content/components/substitutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,21 @@ In addition to the Jinja expressions, ESPHome supports a number of built-in func

{{< anchor "substitute-include-variables" >}}

## Disabling Jinja and substitutions

You can prevent ESPHome from substituting variables or processing Jinja by means of the `!literal` tag before any value:

```yaml
substitutions:
value: "Test Value"
lvgl:
widgets:
- label:
text: !literal "This is a ${value}"
```

In the above example, the value of the `text` property will be, literally, `This is a ${value}`.

## Substitute !include variables

ESPHome's `!include` accepts a list of variables that can be substituted within the included file.
Expand Down