Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR code #91

Open
2 tasks
nagyrobi opened this issue Apr 3, 2024 · 0 comments
Open
2 tasks

QR code #91

nagyrobi opened this issue Apr 3, 2024 · 0 comments

Comments

@nagyrobi
Copy link

nagyrobi commented Apr 3, 2024

  1. add qr-code-component to be usable as src in img and animimg widgets.
  2. extend it to be able to generate QRs at runtime from strings.

Perhaps as a LVGL sub-module.

Both ESPHome and LVGL use nayuki's library to generate QR codes, but ESPHome doesn't seem to be able to do it at runtime from a lambda:

qr_code:
  - id: homepage_qr
    value: !lambda 'return to_string("esphome.io");'

results in:

qr_code: [source config/test.yaml:112]
  - id: homepage_qr

    This option is not templatable!.
    value: !lambda |-
      return to_string("esphome.io");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant