-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhome.yaml
111 lines (108 loc) · 3.57 KB
/
home.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
# lovelace_gen
theme: {{_global.tablet.settings.theme}}
title: {{_global.tablet.startPage.title}}
path: home
icon: {{_global.tablet.startPage.icon}}
type: custom:ha-dashboard
usePanel: true
style: !include ../templates/sidebar/styles/styles.yaml
sidebar:
stickyCards:
- type: custom:digital-clock
locale: sv
cards: !include ../templates/sidebar/menu.yaml
cards:
- type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_width: 1000
width: 300
max_cols: {{ _global.tablet.startPage.max_columns }}
cards:
{% for part in _global.tablet.startPage.parts|sort(attribute='sortOrder') %}
{% if part.type == 'sensors' %}
- type: custom:layout-card
layout_type: custom:{{part.display_type}}-layout
layout:
max_cols: {{part.min_width}}
width: {{part.min_width}}
max_width: {{part.max_width}}
view_layout:
column: {{part.column}}
{% if part.hideOnMobile %}
show:
mediaquery: "(min-width: 480px)"
{% endif %}
cards: !include
- ../templates/partials/home/sensors.yaml
- entities: {{(part.entities|tojson)}}
{% endif %}
{% if part.type == 'weather' %}
- type: custom:layout-card
layout_type: custom:{{part.display_type}}-layout
layout:
max_cols: {{part.max_columns}}
width: {{part.min_width}}
max_width: {{part.max_width}}
view_layout:
column: {{part.column}}
{% if part.hideOnMobile %}
show:
mediaquery: "(min-width: 480px)"
{% endif %}
cards: !include
- ../templates/partials/home/weather.yaml
- entities: {{(part.entities|tojson)}}
{% endif %}
{% if part.type == 'cameras' %}
- type: custom:layout-card
layout_type: custom:{{part.display_type}}-layout
layout:
max_cols: {{part.max_columns}}
width: {{part.min_width}}
max_width: {{part.max_width}}
view_layout:
column: {{part.column}}
{% if part.hideOnMobile %}
show:
mediaquery: "(min-width: 480px)"
{% endif %}
cards: !include
- ../templates/partials/home/cameras.yaml
- entities: {{(part.entities|tojson)}}
{% endif %}
{% if part.type == 'charts' %}
- type: custom:layout-card
layout_type: custom:{{part.display_type}}-layout
layout:
max_cols: {{part.max_columns}}
width: {{part.min_width}}
max_width: {{part.max_width}}
view_layout:
column: {{part.column}}
{% if part.hideOnMobile %}
show:
mediaquery: "(min-width: 480px)"
{% endif %}
cards: !include
- ../templates/partials/home/charts.yaml
- entities: {{(part.entities|tojson)}}
{% endif %}
{% if part.type == 'entities' %}
- type: custom:layout-card
layout_type: custom:{{part.display_type}}-layout
layout:
max_cols: {{part.max_columns}}
width: {{part.min_width}}
max_width: {{part.max_width}}
view_layout:
column: {{part.column}}
{% if part.hideOnMobile %}
show:
mediaquery: "(min-width: 480px)"
{% endif %}
cards: !include
- ../templates/partials/home/entities.yaml
- entities: {{(part.entities|tojson)}}
{% endif %}
{% endfor %}