From a5f45eafc0df0af1f7f1cf4ed6e3bf4153779162 Mon Sep 17 00:00:00 2001 From: sevorl <81764300+sevorl@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:33:33 +0200 Subject: [PATCH] Add QR Code information to markdown (#34981) * Add QR Code information to markdown the ha-rq-code tag is undocumented. This should be added * Update markdown.markdown typos corrected * Apply suggestions from code review * Apply suggestions from code review --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_dashboards/markdown.markdown | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/source/_dashboards/markdown.markdown b/source/_dashboards/markdown.markdown index a940c1cf17e..3885b120724 100644 --- a/source/_dashboards/markdown.markdown +++ b/source/_dashboards/markdown.markdown @@ -150,3 +150,28 @@ content: | This is a success alert — check it out! This is an alert with a title ``` + +## ha-qr-code + +You can also create QR-Codes in the Markdown card. + +Available parameters: +- data: The actual data to encode in the QR-Code +- scale: A scale factor for the QR code, default is 4 +- width: Width of the QR code in pixels +- margin: A margin around the QR code +- error-correction-level: low; medium; quartile; high) +- center-image: An image to place on top of the qr code (might need a higher error-correction-level) + +```yaml +type: markdown +content: >- + + + + + +``` +