Skip to content

YamlCardQRWifi

olialb edited this page Jun 8, 2026 · 1 revision

Card type cardQRWifi

The card type cardQRWifi can be used to show a QR code to access a wifi. It has the following additional card attributes and two slots:

card attribute default value from skin file optional / Mandetory Description
security WPA2 O Security standard of the wifi ("WPA", "WPA2", "WPE" or "" for no unencrypted)
hidden false O Define if wifi is hidden ("true" or "false")
Slot number OH item type slot type default value optional / Mandetory Description
1 String text - M String item with Wifi ssid inside
2 String text - M String item with Wifi password ssid inside

Slot 1 should contain the SSID of your Wifi network and Slot 2 the password. Optional you can define in the Slots icon, iconColor and text attributes. If not default icons defined in the skin and the label from the openHAB items will be used

NOTE: Out of this attributes will be a QR code with the following string content encoded: "WIFI:S:;T:<WPA|WEP|>;P:;H:false;". For more details see for example here: wiqrcode

Example openHAB items:

//
// Special QR card wifi items
//
String NsPanels_STRNG_SSID "Wifi Name"
String NsPanels_STRNG_Password "Password"

Example:

cards:
  - name: guestWifi
    title: "Gäste Wifi"
    type: cardQRWifi
    slots:
      - class: ohItem   #SLot 1 with reference to openHAB String item with SSID
        type: text
        item: NsPanels_STRNG_SSID
      - class: ohItem   #Slot 2 with reference to openHAB String item with password
        type: text
        item: NsPanels_STRNG_Password

image

Clone this wiki locally