esphome / esphome/feature-requests

Substitutions in !include variables

Open
#2,348 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

Ability to use substitutions in ```!include``` variables, like:
```yaml
packages:
output1: !include { file: common/package/output_gpio.yaml, vars: { id: 1, pin: GPIO15, type: ${channel_1_type}, inverted: False } }
```

**Please describe your use case for this integration and alternatives you've tried:**

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

The request names ESPHome's YAML !include variables and provides an example, but no source file, test, or entry point. Start by locating the implementation and tests for !include and substitutions, then determine the supported syntax and add coverage showing that channel_1_type is resolved inside the vars mapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.