mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
Markdown card: add screenshot showing QR code (#34987)
This commit is contained in:
parent
6c819cec03
commit
f20c1125f1
@ -129,7 +129,6 @@ content: |
|
|||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
|
||||||
## ha-alert
|
## ha-alert
|
||||||
|
|
||||||
You can also use our [\`ha-alert\`](https://design.home-assistant.io/#components/ha-alert) component in the Markdown card.
|
You can also use our [\`ha-alert\`](https://design.home-assistant.io/#components/ha-alert) component in the Markdown card.
|
||||||
@ -155,12 +154,18 @@ content: |
|
|||||||
|
|
||||||
You can also create QR-Codes in the Markdown card.
|
You can also create QR-Codes in the Markdown card.
|
||||||
|
|
||||||
|
<p class='img'>
|
||||||
|
<img src='/images/dashboards/markdown_card_qr_code.png' alt='Screenshot of the markdown card with QR codes'>
|
||||||
|
Screenshot of the Markdown card with QR codes.
|
||||||
|
</p>
|
||||||
|
|
||||||
Available parameters:
|
Available parameters:
|
||||||
|
|
||||||
- data: The actual data to encode in the QR-Code
|
- data: The actual data to encode in the QR-Code
|
||||||
- scale: A scale factor for the QR code, default is 4
|
- scale: A scale factor for the QR code, default is 4
|
||||||
- width: Width of the QR code in pixels
|
- width: Width of the QR code in pixels
|
||||||
- margin: A margin around the QR code
|
- margin: A margin around the QR code
|
||||||
- error-correction-level: low; medium; quartile; high)
|
- 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)
|
- center-image: An image to place on top of the qr code (might need a higher error-correction-level)
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -174,4 +179,3 @@ content: >-
|
|||||||
<ha-qr-code data='hallo' error-correction-level="quartile" scale="6"
|
<ha-qr-code data='hallo' error-correction-level="quartile" scale="6"
|
||||||
center-image="https://brands.home-assistant.io/_/tuya/icon@2x.png"></ha-qr-code>
|
center-image="https://brands.home-assistant.io/_/tuya/icon@2x.png"></ha-qr-code>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
BIN
source/images/dashboards/markdown_card_qr_code.png
Normal file
BIN
source/images/dashboards/markdown_card_qr_code.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
Loading…
x
Reference in New Issue
Block a user