Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Files and Folder Structure Conventions

Seb edited this page Oct 17, 2023 · 5 revisions

A Typical files and folder directory layout for each card

this will be an example for the weather card integration

.
├── ...
├── homeos.yaml                    # This is where the card is called !include HomeOS_Module/weather/weather_card.yaml 
├── homeos_Module
│   ├── weather
│       ├── weather_card.yaml          # Full definition of the card
├── packages
│   ├── weather_package.yaml           # Entity to change to integrate the card
├── themes
│   ├── homeos
│       ├── light
│           ├── weather_theme_light.yaml
│       ├── dark
│           ├── weather_theme_dark.yaml
├── www 
│   ├── weather_media                  # Add the complete folder, it contains image, svg used by the card
│       ├── clearsky_night.png
│       ├── Icons=cloud.bolt.fill.png
│       ├── ...

In conclusion, each card will need the following file and folder in order to work properly:

  • One folder in HomeOS_Module (i.e: weather folder) this is the definition of the card
  • One folder in www for all the picture, icon used by the card (i.e weather_media)
  • One file in package for the edition of the entity and value template (i.e weather_package.yaml)
  • One file in themes/HomeOS/light for the light theme version of the card
  • One file in themes/HomeOS/dark for the dark theme version of the card

Naming convention

By default, everything will be in lower case.

File convention

name_type_sub-type.extension

example: weather_card.yaml

theme variable convention

homeos-type-definition:

example: homeos-topbar-height: