https://github.com/ofekashery/vertical-stack-in-card
📐 Home Assistant Card: Group multiple cards into a single sleek card.
https://github.com/ofekashery/vertical-stack-in-card
homeassistant lovelace lovelace-ui
Last synced: 3 months ago
JSON representation
📐 Home Assistant Card: Group multiple cards into a single sleek card.
- Host: GitHub
- URL: https://github.com/ofekashery/vertical-stack-in-card
- Owner: ofekashery
- License: mit
- Created: 2018-07-23T18:14:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-13T20:33:28.000Z (7 months ago)
- Last Synced: 2025-04-06T16:07:21.876Z (3 months ago)
- Topics: homeassistant, lovelace, lovelace-ui
- Language: JavaScript
- Homepage:
- Size: 108 KB
- Stars: 923
- Watchers: 8
- Forks: 83
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vertical Stack In Card



**Vertical Stack In Card** is a custom Lovelace card for Home Assistant, allowing you to group multiple cards into a single sleek card. It offers a clean, organized way to display multiple cards in your Home Assistant dashboard.

## Configuration Options
| Name | Type | Default | Description |
| ------------ | ------- | ------- | ------------------------------------------------- |
| `type` | string | N/A | Must be `custom:vertical-stack-in-card`. |
| `cards` | list | N/A | List of cards to include. |
| `title` | string | None | Optional. Title displayed at the top of the card. |
| `horizontal` | boolean | false | Optional. Whatever stack cards horizontally. |
| `styles` | object | None | Optional. Add custom CSS for advanced styling. |## Installation
### Via HACS (Home Assistant Community Store)
1. Open HACS in Home Assistant.
2. Search for "Vertical Stack In Card."
3. Install and follow the setup instructions.### Manual Installation
Download the [`vertical-stack-in-card.js`](https://raw.githubusercontent.com/ofekashery/vertical-stack-in-card/master/vertical-stack-in-card.js) into your `/www` directory.
```bash
wget https://raw.githubusercontent.com/ofekashery/vertical-stack-in-card/master/vertical-stack-in-card.js
mv vertical-stack-in-card.js /config/www/
```#### Add resource reference
If you configure Lovelace via YAML, add a reference to `vertical-stack-in-card.js` inside your `configuration.yaml`:
```yaml
resources:
- url: /local/vertical-stack-in-card.js?v=1.0.1
type: js
```Alternatively, if you prefer the graphical editor, use the menu to add the resource.
1. Make sure, **advanced mode** is enabled in your user profile (click on your user name to get there).
2. Navigate to the **Configuration** -> **Lovelace Dashboards** -> **Resources**.
3. Click on **Add resource**, and fill out the form as follows:
- **Url:** `/local/vertical-stack-in-card.js?v=1.0.1`
- **Resource type:** `JavaScript Module`4. Finish by clicking **Create** and refresh your browser.
## Usage
Add the card to your Lovelace UI configuration:
```yaml
type: 'custom:vertical-stack-in-card'
title: My Card
cards:
- type: glance
entities:
- sensor.temperature_sensor
- sensor.humidity_sensor
- sensor.motion_sensor
- type: entities
entities:
- switch.livingroom_tv
- switch.livingroom_ac
- light.ambient_lights
```## Acknowledgements
Thanks to [@ciotlosm](https://github.com/ciotlosm) and [@thomasloven](https://github.com/thomasloven) for their inspiration and contributions in building the foundation of this project.