esphome / esphome/feature-requests

qr_code component need the option to use variable

Open
#2,937 1 comment 0 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**
I will use on a e paper the qr_code, ok that run but hte value is static.
i will use in Home Assistant a input text to update the content

**Please describe your use case for this integration and alternatives you've tried:**
Example code from qr_code template it:
qr_code:
- id: homepage_qr
value: esphome.io

**My wish Example:**
- platform: homeassistant
id: remote_input_text_e_paper_213_p_qr
entity_id: input_text.e_paper_213_p_qr
on_value:
then:
- delay: 3s

qr_code:
- id: homepage_qr
value: |-
return id(remote_input_text_e_paper_213_p_qr).state.c_str();

Alternate:
qr_code:
- id: homepage_qr
value: id(remote_input_text_e_paper_213_p_qr)

then i can use homepage_qr in the normaly QR
If i use this now then is this the text"id(remote_input_text_e_paper_213_p_qr)" and not the value from the id

**Additional context**
i think this is all, thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the qr_code component and its value configuration, then review how the Home Assistant input_text entity is exposed through on_value. Compare the requested return expression and id reference with the component's current configuration behavior. Done means the QR content updates from the entity value instead of displaying the expression literally.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.