You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEVELOPER PREVIEW VERSION NOT FINAL Version 0.1.5
I'm still looking for help and would be happy if someone would get in touch to help me complete and improve the cards-layout.
Bugfix for Home Assistant 2023.4.0
Requirements
Home Assistant 2023.4.0
Frontend 20230405.0 - latest
Lovelace Mode
Tested Browser
Chrome Version 86.0.4240.111
Safari Version 13.1.2 (13609.3.5.1.5)
Firefox 82.0 (64-Bit)
Vivaldi 3.4.2066.76 (Stable channel) (x86_64)
Android Browser (Chrome, Firefox, Vivaldi)
Installation
Manual install
Download the latest release, unzip and copy the folder cards-layout into your $HOME/homeassistant/.homeassistant/www/community/cards-layout directory.
Add a reference to cards-layout-min.js inside your ui-lovelace.yaml or at the top of the raw config editor UI:
Logs debug information in the console of your browser. Useful when you want to investigate or register an issue.
Options toolbar
Name
Type
Default
Example
backgroundcolor
string
Optional
backgroundcolor: '#5CD5FE'
iconcolor
string
Optional
iconcolor: '#047CD1'
visible
boolean
Optional
show or hide the toolbar
Options header
Name
Type
Default
Description
icon
string
Optional
Page header icon
title
string
Optional
Page header title
iconcolor
string
Optional
iconcolor: '#047CD1'
style
string
Optional
CSS Style tags for header
Options page
Name
Type
Default
Description
icon
string
Optional
Page page icon
title
string
Optional
Page page title
iconcolor
string
Optional
iconcolor: '#047CD1'
description
string
Optional
Card section text
style
string
Optional
CSS Style tags for header
content
section
Optional
Section for content rows, columns, cards...
locale
string
Optional
formats the numbers according to the locale and formatting options and set the data string with a language sensitive representation of the date portion of the date
views:
- title: Custom Layout card testcasepanel: truecards:
- type: 'custom:cards-layout'header:
title: My Houseicon: 'mdi:home'style: >- background-image: url('/hacsfiles/cards-layout/assets/ui-ux.png'); background-color: rgb(106, 115, 126);page:
title: Page Titleicon: 'mdi:view-agenda'description: >- Description Section 1 Lorem ipsum dolor sit amet, consetetur sadipscing elitrstyle: | color: #FFFFFF; background: #bdc3c7; background: linear-gradient(to top, #bdc3c7, #2c3e50);")width: 80%content:
- row:
- columns: nullwidth: 100%title: Section 1description: >- Description Section 1 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.entities:
- type: picturetitle: Card 1 Section 1style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&h=600&q=80
- row:
- columns: nullwidth: 50%title: Section 2description: >- Description Section 2 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.entities:
- type: picturetitle: Card 1 Section 2style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1521446477144-773b2dd9b1af?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&h=600&q=80
- type: picturetitle: Card 2 Section 2style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1546551613-09c2f83e1ede?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&h=600&q=80
- row:
- columns: nullwidth: 50%title: Section 3description: >- Description Section 3 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.entities:
- type: picturetitle: Card 1 Section 3style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1560635921-171138a3955e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&h=600&q=80
- type: picturetitle: Card 2 Section 3style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1545022274-cdffe6d68075?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&h=600&q=80
- type: picturetitle: Card 3 Section 3style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1598928506311-c55ded91a20c?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&h=600&q=80
- type: picturetitle: Card 4 Section 3style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1593853885764-b1174d704401?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&h=600&q=80
- row:
- columns: nullwidth: 100%title: Section 4description: >- Description Section 4 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.entities:
- type: picturetitle: Card 1 Section 4style: 'ha-card {transform: scale(0.95);}'image: >- https://images.unsplash.com/photo-1544984243-ec57ea16fe25?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&h=600&q=80
TODO
better css handling (load css once not per card)
initialize - render cards to stage, re-assign to root
how to handle end devices with low bandwidth, currently shows error-hui card when loading ?
how to call hass and config for a custom:card (update data custom:card do not work !) ? --> this.provideHass(element);