-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdashboards.yaml
163 lines (163 loc) · 4.95 KB
/
dashboards.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
type: custom:mod-card
card_mod:
style: |
ha-card {
background: var(--llh-mod-card-background);
box-shadow: var(--llh-mod-card-box-shadow);
}
report_size: 5
card:
type: vertical-stack
cards:
- type: glance
card_mod:
style: |
ha-card {
border: 0px;
box-shadow: unset;
}
entities:
- entity: sensor.ds1815_1_minute_load
- entity: sensor.ds1815_memory_usage_real
- entity: sensor.ds1815_temperature
- entity: binary_sensor.ds1815_security_status
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('binary_sensor.ds1815_security_status') == 'on' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
show_name: false
show_icon: true
show_state: true
state_color: false
columns: 4
title: Synology DS1815+
- type: glance
card_mod:
style:
.: |
ha-card {
border: 0px;
box-shadow: unset;
}
ha-card div.entities{
padding: 0px 32px 4px 32px !important;
}
div.entity:
$:
state-badge$ ha-state-icon$: |
:host::after{
font-weight: bold;
font-variant-position: super;
}
entities:
- entity: sensor.ds1815_drive_1_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_1_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "1"
}
- entity: sensor.ds1815_drive_2_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_2_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "2"
}
- entity: sensor.ds1815_drive_3_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_3_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "3"
}
- entity: sensor.ds1815_drive_4_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_4_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "4"
}
- entity: sensor.ds1815_drive_5_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_5_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "5"
}
- entity: sensor.ds1815_drive_6_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_6_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "6"
}
- entity: sensor.ds1815_drive_7_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_7_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "7"
}
- entity: sensor.ds1815_drive_8_status
icon: mdi:harddisk
card_mod:
style:
state-badge$ ha-state-icon$: |
{%- if states('sensor.ds1815_drive_8_status') != 'normal' -%}
:host{
color: var(--error-color);
}
{%- endif -%}
:host::after{
content: "8"
}
columns: 8
show_state: false
show_name: false