Created
July 23, 2018 22:32
-
-
Save dale3h/37b34aebb0c336ffd5fb877c2651097a to your computer and use it in GitHub Desktop.
[Lovelace] Create a header by using `panel: true` with nested stack cards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Home | |
views: | |
- title: Header | |
icon: mdi:car | |
panel: true | |
cards: | |
- type: vertical-stack | |
cards: | |
- type: glance | |
entities: | |
- sun.sun | |
- sensor.season | |
- sensor.dark_sky_cloud_coverage | |
- sensor.dark_sky_humidity | |
- sensor.dark_sky_precip_probability | |
- sensor.dark_sky_temperature | |
- sensor.yr_cloudiness | |
- sensor.yr_humidity | |
- sensor.yr_precipitation | |
- sensor.yr_temperature | |
- type: horizontal-stack | |
cards: | |
- type: vertical-stack | |
cards: | |
- type: entities | |
title: Column 1 | |
entities: | |
- sensor.date | |
- sensor.time | |
- sensor.startup_time | |
- sensor.uptime | |
- type: vertical-stack | |
cards: | |
- type: entities | |
title: Column 2 | |
entities: | |
- sensor.current_version | |
- sensor.github_version | |
- sensor.pypi_version | |
- type: vertical-stack | |
cards: | |
- type: entities | |
title: Column 3 | |
show_header_toggle: false | |
entities: | |
- script.manual_config_backup | |
- script.reload_config | |
- script.update_hass | |
- script.restart_hass |
Thanks. I'm just learning lovelace. I'm having difficulty understanding how to integrate this in with an existing page.
Thanks for sharing. I'm trying to squeeze more icons into your first panel but the
column_width: calc(100% / 7)
is not working. Have you tried that? https://www.home-assistant.io/lovelace/glance/#column_width
Try columns: 7
Seems like this is not working in the raw config editor.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing. I'm trying to squeeze more icons into your first panel but the
column_width: calc(100% / 7)
is not working. Have you tried that? https://www.home-assistant.io/lovelace/glance/#column_width