Skip to content

QR code #91

@nagyrobi

Description

@nagyrobi
  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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions