Lovelace QRCode Generator card
July 29, 2024 ยท View on GitHub
Lovelace QRCode Generator card
This card provides a possibility to generate QRCode in Home Assistant interface.
Installation
- Add custom
Lovelacerepository to HACS - Go to "Frontend" section
- Click button with "+" icon
- Search for "QRCode generator card"
- Install repository in HACS
Configuration
Main config
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| Generic options | ||||
title | string | no | empty | Title for the card |
source | string | yes | text | Card source type. Options: text, entity, wifi |
| Text mode options | ||||
text | string | yes | QRCode example text | Text that will be used for QRCode generation |
| Entity mode options | ||||
entity | string | yes | empty | Entity that will be used for QRCode generation |
| Wi-Fi mode options | ||||
auth_type | string | yes | empty | Wi-Fi network authentication type. Options: WEP, WPA, nopass |
ssid | string | EntityConfig | yes | empty | Wi-Fi network ssid |
password | string | EntityConfig | yes1 | empty | Wi-Fi network password |
is_hidden | boolean | no | empty | Is Wi-Fi network is hidden |
1Required for WEP and WPA authentication
Entity Config
| Key | Type | Required | Description |
|---|---|---|---|
entity | string | yes | Entity to get state from |
attribute | string | no | Enables usage of a configured attribute instead of state of given entity |
Example WiFi config
type: custom:qr-code-card
source: wifi
title: My Awesom WiFi
auth_type: WPA
ssid: my_awesom_wifi
password:
entity: input_text.my_super_secure_password