I’m trying to use a combination of layout-card, custom button card, atomic calendar, and clock-weather-card, kiosk mode (to hide the menu, but leave navigation at top) to make a display to use on my tablets, but am running into some issues getting everything to line up.
My end goal is to have the views at the top, then below that a row of “chip” like cards centered in the middle, then below that have 2 main columns (say 50/50). The left column will have a clock-weather-card at the top, and then atomic calendar revive filling up the rest of the display, and on the right 2 columns of “room cards” that are scaled to fill the height.
Kind of like this, (sorry my art skills suck)
-----------------------------------------------------------------------------
| NAVIGATION |
-----------------------------------------------------------------------------
| CHIPS |
----------------------------------------------------------------------------|
| | | |
| CLOCK/WEATHER | ROOM 1 | ROOM 2 |
-------------------------------------------| | |
| | -------------------------------|
| | | |
| | ROOM 3 | ROOM 4 |
| CALENDAR | | |
| | -------------------------------|
| | | |
| | ROOM 5 | ROOM 6 |
| | | |
| | -------------------------------|
| | | |
| | ROOM 7 | ROOM 8 |
| | | |
|----------------------------------------------------------------------------
Currently I have
views:
- title: Overview
type: custom:grid-layout
path: overview
layout:
grid-template-columns: 50vw 50vw
grid-template-rows: min-content auto
grid-template-areas: |
"header-buttons header-buttons"
"main-left main-right"
height: calc(100vh - 60px)
margin: 0px 0px 0px 0px
card_margin: 0px 0px 0px 0px
padding: 0px 0px 0px 0px
cards:
# CHIPS
- type: custom:layout-card
layout_type: custom:grid-layout
view_layout:
grid-area: header-buttons
layout:
grid-template-columns: auto
grid-template-rows: auto
height: 100%
place-content: end center
cards:
- type: horizontal-stack
cards:
- type: "custom:button-card"
template: chip_icon_label
label: Label
icon: "mdi:heart"
- type: "custom:button-card"
template: chip_icon_label
label: Label
icon: "mdi:heart"
- type: "custom:button-card"
template: chip_icon_label
label: Label
icon: "mdi:heart"
- type: "custom:button-card"
template: chip_icon_label
label: Label
icon: "mdi:heart"
- type: "custom:button-card"
template: chip_icon_label
label: Label
icon: "mdi:heart"
# LEFT
- type: custom:layout-card
layout_type: custom:grid-layout
view_layout:
grid-area: main-left
layout:
grid-template-columns: auto
grid-template-rows: min-content 1fr
height: 100%
cards:
- type: custom:clock-weather-card
entity: weather.accuweather_accuweather
title: Home
- type: "custom:atomic-calendar-revive"
entities:
- entity: calendar.test
name: "Test"
# RIGHT
- type: custom:layout-card
layout_type: custom:grid-layout
view_layout:
grid-area: main-right
layout:
grid-template-columns: 50% 50%
grid-template-rows: auto
height: 100%
cards:
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
- type: "custom:button-card"
name: Room
icon: mdi:sofa-outline
entity: switch.lamps
Which is close, but the atomic calendar isn’t limiting itself to the screen and is flying off the bottom of the screen.
Any help appreciated.