-
Notifications
You must be signed in to change notification settings - Fork 7
/
dashboard.yaml
439 lines (433 loc) · 17.3 KB
/
dashboard.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
background: center / cover no-repeat fixed url('/local/lovelace/bg_long.png?v=1')
title: Home
kiosk_mode:
mobile_settings:
hide_header: true
views:
- title: Home
panel: true
badges: []
cards:
- type: vertical-stack
cards:
- type: 'custom:mod-card'
card_mod:
style:
swipe-card:
$: |
.swiper-pagination-bullet {
width: 10px;
height: 10px;
background-color: rgba(255,255,255,1.0) !important;
position: relative;
top: 15px
}
.swiper-pagination-bullet-active {
background-color: rgba(247,148,29,1.0) !important;
}
card:
type: 'custom:swipe-card'
start_card: 2
reset_after: 30
parameters:
spaceBetween: 8
autoHeight: true
pagination:
type: bullets
cards:
- type: picture-glance
aspect_ratio: '16:9'
camera_image: camera.driveway
camera_view: live
entities: []
name: Driveway
card_mod:
style: |
ha-card {
margin-bottom: 15px;
background: rgba(255, 255, 255, 0.0);
border-radius: 0;
box-shadow: none;
color: white;
}
.box {
background: rgba(255,255,255,0) !important;
}
- type: markdown
content: >
<table> <tr><td width="200px"><h3>{{
states('sensor.dashboard_greeting') }}, {{ user
}}</h3><strong>Current Temperature:</strong>
{{state_attr('weather.home','temperature') |
round}}°F</br> {% if is_state("sun.sun",
"above_horizon") -%}
<strong>Next Sunset:</strong> {{as_timestamp(strptime(state_attr("sun.sun", "next_setting"), '')) | timestamp_custom("%-I:%M %p")}}
{%- else -%}
<strong>Next Sunrise:</strong> {{as_timestamp(strptime(state_attr("sun.sun", "next_rising"), '')) | timestamp_custom("%-I:%M %p")}}
{%- endif %}</br></br><strong>SmartHome Mode:</strong> {{
states('input_text.home_mode') }}</br>
<strong>Doors:</strong> {{ states('sensor.door_locks')
}}</br> <strong>Grocery Budget:</strong> ${{
states('sensor.grocery_budget_balance') }}
</td><td></br><img
src="https://darksky.net/{{states('sensor.dashboard_weather')}}"
width="190px" /></td></tr> <tr><td colspan="2">{{
states('sensor.dashboard_occupancy')
}}</td></tr></table></br>
style: |
ha-card {
background: transparent;
margin-top: -15px;
margin-bottom: -7px;
}
- type: picture-glance
aspect_ratio: '16:9'
camera_image: camera.front_door
camera_view: live
entities: []
name: Front Door
card_mod:
style: |
ha-card {
margin-bottom: 15px;
background: rgba(255, 255, 255, 0.0);
border-radius: 0;
box-shadow: none;
color: white;
}
.box {
background: rgba(255,255,255,0) !important;
}
- type: 'custom:homekit-card'
home: false
title: Home
useBrightness: true
useTemperature: true
titleColor: '#FFF'
statePositionTop: true
style: |
:host {
--tile-background: rgba(255, 255, 255, 0.10);
--tile-border-radius: 12px;
--tile-width: 100px;
--tile-height: 100px;
--tile-on-background: rgba(255, 255, 255, 0.7);
--tile-name-text-color: rgba(255, 255, 255, 0.8);
--tile-on-name-text-color: rgba(0, 0, 0, 1);
--tile-state-text-color: rgba(255, 255, 255, 0.8);
--tile-on-state-text-color: rgba(0, 0, 0, 1);
--tile-state-changed-text-color: rgb(134, 134, 134);
--tile-unavailable-state-text-color: rgba(255, 255, 255, 1);
--tile-value-text-color: rgba(255, 0, 0, 1);
--tile-icon-color: rgba(255, 255, 255, 0.8);
--tile-on-icon-color: rgba(247,148,29,0.9) !important;
/* #f7d959; rgba(255,204,110,1.0) */
font-family: Arial;
}
.top-fav {
background-color: rgba(255, 255, 230,0.5) !important;
}
.off-bg {
background-color: rgba(255, 255, 255, 0.10) ;
}
.fan .icon {
color: rgba(0, 0, 0, 0.5) !important;
}
.hideState .state {
visibility:hidden !important;
}
homekit-button .icon.climate {
background-color: rgba(247,148,29,1.0) !important;
}
entities:
- title: Favorites
entities:
- card: 'custom:button-card'
conditionalClass: |
[[[
return "top-fav";
]]]
type: 'custom:light-popup-card'
tap_action:
action: navigate
navigation_path: /sub-security/0
hold_action:
action: navigate
navigation_path: /sub-security/0
cardOptions:
name: Alarm & Security
icon: 'mdi:shield-home'
size: 80%
show_name: false
show_state: false
show_label: false
styles:
card:
- '-webkit-box-shadow': none
- box-shadow: none
- background-color: 'rgba(255, 255, 255, 0.0)'
- margin-top: 5px
icon:
- color: |
[[[
if (states['alarm_control_panel.abode_alarm'].state == "disarmed")
return "rgba(51, 102, 0,1)";
return "rgba(230, 0, 0,0.7)";
]]]
- card: 'custom:button-card'
tap_action:
action: call-service
service: cover.toggle
service_data:
entity_id: cover.sonoff_sv_switch_01
confirmation:
text: Are you sure you'd like to open/close the garage door?
hold_action:
action: none
conditionalClass: |
[[[
return "top-fav";
]]]
cardOptions:
entity: cover.sonoff_sv_switch_01
size: 100%
icon: |
[[[
if (states['binary_sensor.garage_door'].state == "on")
return "mdi:garage";
else if (states['binary_sensor.garage_door'].state == "off")
return "mdi:garage-open";
else
return "mdi:cloud-question";
]]]
show_name: false
show_state: false
show_label: false
styles:
card:
- box-shadow: none
- background-color: 'rgba(255, 255, 255, 0.0)'
- margin-top: '-8px'
icon:
- color: |
[[[
if (states['binary_sensor.garage_door'].state == "on")
return "white";
return "rgba(255, 204, 110,1.0)";
]]]
- card: 'custom:button-card'
conditionalClass: |
[[[
return "top-fav";
]]]
tap_action:
action: navigate
navigation_path: /sub-cameras/0
hold_action:
action: none
cardOptions:
name: Cameras
icon: 'mdi:cctv'
size: 90%
show_name: false
show_state: false
show_label: false
styles:
card:
- box-shadow: none
- background-color: 'rgba(255, 255, 255, 0.0)'
- margin-top: '-5px'
icon:
- color: white
- entity: fan.family_room_fan
name: Ceiling Fan
icon: 'mdi:fan'
spin: true
state: input_select.family_room_fan_speed
conditionalClass: |
[[[
if (states['input_boolean.family_room_fan_state'].state == "on")
return "fan";
]]]
tap_action:
action: call-service
service: fan.toggle
service_data:
entity_id: fan.family_room_fan
hold_action:
action: navigate
navigation_path: /sub-fan/0
double_tap_action:
action: navigate
navigation_path: /sub-fan/0
- entity: light.corner_lamp
name: Corner Lamp
icon: 'mdi:floor-lamp-dual'
- entity: input_boolean.dummy
name: Television
icon: 'mdi:remote-tv'
tap_action:
action: navigate
navigation_path: /sub-remotes/0
hold_action:
action: none
conditionalClass: |
[[[
return "hideState";
]]]
- title: Lights
entities:
- entity: light.kitchen
name: Kitchen Island
icon: 'mdi:wall-sconce-round'
double_tap_action:
action: popup
- entity: light.kitchen_table
name: Kitchen Table
icon: 'mdi:wall-sconce-round'
double_tap_action:
action: popup
- entity: light.cabinets_btm
name: Under Cabinets
icon: 'mdi:wall-sconce-flat'
double_tap_action:
action: popup
- entity: light.cabinets_top
name: Above Cabinets
icon: 'mdi:wall-sconce-flat-variant'
double_tap_action:
action: popup
- entity: light.tower_lamps
name: Tower Lamps
icon: 'mdi:floor-lamp'
double_tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.tower_lights_white
hold_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.tower_lights_purple
- entity: input_boolean.family_room_fan_light_state
name: Fan Light
icon: 'mdi:wall-sconce-round'
hold_action:
action: null
- entity: light.corner_lamp
name: Corner Lamp
icon: 'mdi:floor-lamp-dual'
- entity: light.porch
name: Front Exterior
icon: 'mdi:coach-lamp'
double_tap_action:
action: more-info
- entity: switch.sonoff_switch_04
name: Office Lamp
icon: 'mdi:desk-lamp'
hold_action:
action: none
hide: |
[[[
if (user.name == "Ely")
return false;
else
return true;
]]]
- entity: light.master
name: Master Fan Light
icon: 'mdi:wall-sconce-round'
hide: |
[[[
if (user.name == "Ely" || user.name == "Annette")
return false;
else
return true;
]]]
- entity: switch.sonoff_switch_02
name: Master Lamp
icon: 'mdi:lamp'
hold_action:
action: none
hide: |
[[[
if (user.name == "Ely" || user.name == "Annette")
return false;
else
return true;
]]]
- title: Accessories
entities:
- entity: media_player.music
name: Whole Home Music Stream
icon: 'mdi:music-circle-outline'
tap_action:
action: navigate
navigation_path: /sub-music/0
hold_action:
action: none
- entity: switch.sonoff_switch_01
name: Front Room Stereo
icon: 'mdi:album'
hold_action:
action: none
- entity: media_player.denon_avr
name: Family Room Home Theater
icon: 'mdi:cassette'
- entity: sensor.arturito
name: Vacuum
icon: 'mdi:robot-vacuum'
state: vacuum.arturito
statePath: attributes.battery_level
offStates:
- docked
spin: true
tap_action:
action: navigate
navigation_path: /sub-vacuum/0
hold_action:
action: none
- entity: climate.main_floor
name: A/C
icon: 'mdi:air-conditioner'
offStates:
- heat
- cool
- heat_cool
tap_action:
action: navigate
navigation_path: /sub-hvac/0
hold_action:
action: none
- entity: input_boolean.dummy
name: Printer
icon: 'mdi:printer'
tap_action:
action: navigate
navigation_path: /sub-print/0
hold_action:
action: none
conditionalClass: |
[[[
return "hideState";
]]]
- entity: input_boolean.dummy
name: Admin
icon: 'mdi:tools'
tap_action:
action: navigate
navigation_path: /sub-admin/0
hold_action:
action: none
conditionalClass: |
[[[
return "hideState";
]]]
hide: |
[[[
if (user.name == "Ely")
return false;
else
return true;
]]]