A custom card for Home Assistant that provides a tabbed interface to easily organize your dashboard entities and cards into neat, switchable views.
- Open HACS in your Home Assistant instance.
- Go to the Frontend section.
- Click the 3 dots in the top right corner and select Custom repositories.
- Add the URL of this repository and select Lovelace as the category.
- Click Install on the new TabCard repository.
- Reload your browser cache.
- Download the compiled
.jsfile from the latest release. - Copy the file into your
<config>/www/directory. - Go to Settings -> Dashboards -> Resources (you might need to enable Advanced Mode in your user profile to see this).
- Click Add Resource.
- Enter
/local/tab-card.js(or whatever you named the file) for the URL and selectJavaScript Moduleas the Resource type. - Reload your browser cache.
You can configure everything with the visual editor but here is also a basic example of how to configure the TabCard in yaml:
type: custom:tab-card
tabs:
- title: Living Room
cards:
- type: entities
entities:
- light.living_room_main
- switch.tv
- title: Weather
cards:
- type: weather-forecast
entity: weather.homeIf you want to modify or build the card from source, you will need Node.js installed.
- Clone the repository and navigate to the project directory.
- Install the dependencies:
npm install
- Build the project:
npm run build
The compiled file will be located in the dist directory.
This project is licensed under the MIT License.
