mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-22 14:08:37 +01:00
2.3 KiB
2.3 KiB
Cards
Supported card types
cardEntitiescardGridcardQRcardPowercardMediacardThermocardAlarmcardUnlock
Common card keys
| key | required | type | description |
|---|---|---|---|
type |
yes | string | Card type. |
title |
no | string | Card title. |
key |
no | string | Navigation key used by navigate.<key>. |
cardEntities and cardGrid
- type: cardEntities
title: Main
key: main
entities:
- entity: light.kitchen
- entity: navigate.settings
icon: mdi:cog
entitiesis required.cardGridauto-switches tocardGrid2if more than 6 entities are present.
cardQR
- type: cardQR
title: Guest WiFi
qrCode: "WIFI:S:myssid;T:WPA;P:mypassword;;"
entities:
- entity: iText.myssid
name: SSID
icon: mdi:wifi
Keys:
qrCodeoptional (default value exists, but set it explicitly)- supports optional
entity/entities
cardPower
- type: cardPower
title: Energy
entities:
- entity: sensor.house_power
- entity: delete
- entity: sensor.solar_power
Notes:
entitiesis required.speedkey is accepted in config but currently not applied by the renderer.
cardMedia
- type: cardMedia
title: Living Room
entity: media_player.living_room
entities:
- entity: light.ambient
- entity: switch.tv_bias_light
Notes:
- Main media entity must exist (
entityor first generated entity). - Additional
entitiesare rendered as action buttons on the bottom row.
cardThermo
- type: cardThermo
title: Heating
entity: climate.downstairs
supported_modes: ["heat", "off"]
Keys:
entityrequiredsupported_modesoptional (filters shown HVAC mode buttons)
cardAlarm
- type: cardAlarm
title: House Alarm
entity: alarm_control_panel.house
supported_modes: ["arm_home", "arm_away", "arm_night"]
Keys:
entityrequiredsupported_modesoptional
cardUnlock
- type: cardUnlock
title: Admin
pin: 1234
destination: navigate.admin
Keys:
pinrequireddestinationrequired
Typical target in hiddenCards:
hiddenCards:
- type: cardGrid
key: admin
title: Admin
entities:
- entity: switch.maintenance_mode