esphome / esphome/feature-requests

Allow Secrets to Create configuration

Open
#1,279 2 comments 4 reactions 0 assignees View on GitHub
Project: Dashboard
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**

Would it be possible to add a check to the "Create configuration" backend to allow for **Secrets** to be used?

For Example:
![01 start](https://user-images.githubusercontent.com/51385971/123531325-80bdf480-d6fb-11eb-8b90-62e6f91c9f79.JPG)

Currently, it results in plain text being added to the config:
```yaml
wifi:
ssid: "!secret ssid"
password: "!secret wifi_password"
```
- Note the included quotation marks.

Obviously, it needs to be:
```yaml
wifi:
ssid: !secret ssid
password: !secret wifi_password
```

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

It's obviously an advantage to use secrets in ESPHome and I think this feature could make the user experience smother.

**Additional context**

Thanks. 👍

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Create configuration backend and tracing how values are serialized into YAML. Compare its output for ordinary strings with the requested !secret ssid and !secret wifi_password examples. Done means secret references are emitted without quotation marks and the generated configuration matches the examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.