forked from avenger11/Apple-HomePlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomeOS.yaml
157 lines (141 loc) · 7.15 KB
/
HomeOS.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#..............................................................................
#.HHHH...HHHH.........................................OOOOOOO......SSSSSSS.....
#.HHHH...HHHH........................................OOOOOOOOOO...OSSSSSSSS....
#.HHHH...HHHH.......................................eOOOOOOOOOOO..OSSSSSSSSS...
#.HHHH...HHHH....oooooo..ommmmmmmmmmmmm....eeeeee...eOOOO..OOOOO.OOSSS..SSSS...
#.HHHH...HHHH..ooooooooo.ommmmmmmmmmmmmm..eeeeeeee.eeOOO....OOOOOOOSSS.........
#.HHHHHHHHHHH..oooo.oooooommmm.mmmmmmmmm.meee.eeee.eeOO......OOOO.OSSSSSS......
#.HHHHHHHHHHH.Hooo...ooooommm..mmmm..mmmmmeee..eeeeeeOO......OOOO..SSSSSSSSS...
#.HHHHHHHHHHH.Hooo...ooooommm..mmmm..mmmmmeeeeeeeeeeeOO......OOOO....SSSSSSS...
#.HHHH...HHHH.Hooo...ooooommm..mmmm..mmmmmeeeeeeeeeeeOOO....OOOOO.......SSSSS..
#.HHHH...HHHH.Hooo...ooooommm..mmmm..mmmmmeee.......eOOOO..OOOOO.OOSS....SSSS..
#.HHHH...HHHH..oooo.oooooommm..mmmm..mmmmmeee..eeee.eOOOOOOOOOOO.OOSSSSSSSSSS..
#.HHHH...HHHH..ooooooooo.ommm..mmmm..mmmm.eeeeeeee...OOOOOOOOOO...OSSSSSSSSS...
#.HHHH...HHHH....oooooo..ommm..mmmm..mmmm..eeeeee......OOOOOO......SSSSSSSS....
#..............................................................................
# +----------------------------------------------------------------------------+
# | Description: |
# | This is the main file for the HomeOS dashboard |
# | A first grid layout define the app bar / top bar / cards area |
# | A second grid layout define the cars position within the cards area |
# +----------------------------------------------------------------------------+
# | Author: Sebastien Logeais |
# +----------------------------------------------------------------------------+
# | Date: 25 Aug 2023 |
# +----------------------------------------------------------------------------+
kiosk_mode:
hide_header: true
# all relevant template will be find
button_card_templates: !include_dir_merge_named HomeOS_Module/
views:
# +----------------------------------------------------------------------------+
# | Definition of the first grid-layout |
# | +------+----------------------------------+ |
# | | | topbar | |
# | | +----------------------------------+ |
# | | Apps | | |
# | | | Cards | |
# | | | | |
# | +------+----------------------------------+ |
# | |
# +----------------------------------------------------------------------------+
- type: custom:grid-layout
title: HomeOS
background: var(--background)
layout:
height: 62.6vw # 16/10 screen
margin: 0
grid-template-columns: var(--homeos-appsbar-width) 1fr
grid-template-rows: var(--homeos-topbar-height) 1fr
grid-gap: 0
grid-template-areas: |
"apps topbar "
"apps cards"
cards:
# +----------------------------------------------------------------------------+
# | Apps bar Definition |
# +----------------------------------------------------------------------------+
- type: custom:mod-card
view_layout:
grid-area: apps
style: |
ha-card {
display: contents;
}
card: !include HomeOS_Module/apps/apps_bar.yaml
# +----------------------------------------------------------------------------+
# | Top bar Definition |
# +----------------------------------------------------------------------------+
- type: custom:mod-card
view_layout:
grid-area: topbar
style: |
ha-card {
display: contents;
}
card: !include HomeOS_Module/topbar/top_bar.yaml
# +----------------------------------------------------------------------------+
# | Second Custom Grid layout definition for placing cards |
# +----------------------------------------------------------------------------+
- type: custom:layout-card
layout_type: custom:grid-layout
view_layout:
grid_area: cards
layout:
height: 58vw # 16/10 screen
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr
grid-template-rows: 1fr 1fr 1fr 1fr 1fr
grid-gap: 0.8vw
margin: 0 0.8vw 0.8vw 0.8vw
grid-template-areas: |
"weather weather map map map map pack"
"weather weather map map map map pack"
"weather weather map map map map 3"
"calendar calendar map map map map 4"
"calendar calendar . . . . 5"
cards:
# +----------------------------------------------------------------------------+
# | Weather Area Definition |
# +----------------------------------------------------------------------------+
- type: custom:mod-card
view_layout:
grid-area: weather
# the following style ensure the card resize to the grid
style: |
ha-card {
display: contents;
}
card: !include HomeOS_Module/weather/weather_card.yaml
# +----------------------------------------------------------------------------+
# | Calendar Area Definition |
# +----------------------------------------------------------------------------+
- type: custom:mod-card
view_layout:
grid-area: calendar
style: |
ha-card {
display: contents;
}
card: !include HomeOS_Module/Calendar/calendar_card.yaml
# +----------------------------------------------------------------------------+
# | Map Area Definition |
# +----------------------------------------------------------------------------+
- type: custom:mod-card
view_layout:
grid-area: map
style: |
ha-card {
display: contents;
}
card: !include HomeOS_Module/map/map_card.yaml
# # # +----------------------------------------------------------------------------+
# # # | seventeen track Package Tracking Definition |
# # # +----------------------------------------------------------------------------+
# # - type: custom:mod-card
# # view_layout:
# # grid-area: pack
# # style: |
# # ha-card {
# # display: contents;
# # }
# # card: !include HomeOS_Module/seventeen_track/seventeen_track_card.yaml