This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Files and Folder Structure Conventions
Seb edited this page Oct 17, 2023
·
5 revisions
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
By default, everything will be in lower case.
name_type_sub-type.extension
example: weather_card.yaml
homeos-type-definition:
example: homeos-topbar-height: