-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpopup_shbpc.yaml
More file actions
289 lines (261 loc) · 9.98 KB
/
Copy pathpopup_shbpc.yaml
File metadata and controls
289 lines (261 loc) · 9.98 KB
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
# 8888888b. .d88888b. 8888888b. 888 888 8888888b. #
# 888 Y88b d88P" "Y88b 888 Y88b 888 888 888 Y88b #
# 888 888 888 888 888 888 888 888 888 888 #
# 888 d88P 888 888 888 d88P 888 888 888 d88P #
# 8888888P" 888 888 8888888P" 888 888 8888888P" #
# 888 888 888 888 888 888 888 #
# 888 Y88b. .d88P 888 Y88b. .d88P 888 #
# 888 "Y88888P" 888 "Y88888P" 888 #
# #
# #
# #
# .d8888b. 888 888 888888b. 8888888b. .d8888b. #
# d88P Y88b 888 888 888 "88b 888 Y88b d88P Y88b #
# Y88b. 888 888 888 .88P 888 888 888 888 #
# "Y888b. 8888888888 8888888K. 888 d88P 888 #
# "Y88b. 888 888 888 "Y88b 8888888P" 888 #
# "888 888 888 888 888 888 888 888 #
# Y88b d88P 888 888 888 d88P 888 Y88b d88P #
# "Y8888P" 888 888 8888888P" 888 "Y8888P" #
# #
# #
# #
#----------------------------------------------------------------
# PopUp Card
#----------------------------------------------------------------
type: custom:popup-card
title: S-H-B--PC
size: normal
timeout: 10000
entity: sensor.s_h_b_pc_zustand
style: |-
--mdc-theme-surface: transparent;
--popup-border-radius: 0px;
card_mod:
style:
ha-dialog$: |
div.mdc-dialog__scrim {
backdrop-filter: blur(15px) !important;
-webkit-backdrop-filter: blur(15px) !important;
border-radius: 0px;
}
ha-dialog: |
.content{
border: 1px solid {{ states['sensor.dashboard_primar_farbe'].state }} !important;
background-color: rgba(15,10,10,0.7);
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;
}
card:
#----------------------------------------------------------------
# Raster Karte (1 Spalte)
#----------------------------------------------------------------
square: false
columns: 1
type: grid
cards:
#----------------------------------------------------------------
# Vertikaler Stapel
#----------------------------------------------------------------
- type: vertical-stack
cards:
#----------------------------------------------------------------
# Entitäten Karte
#----------------------------------------------------------------
- type: entity
state_color: false
entity: sensor.s_h_b_pc_zustand
card_mod:
style: |
ha-card {
border: none;
background: transparent
}
#----------------------------------------------------------------
# Bedingungs Karte
#----------------------------------------------------------------
- type: conditional
conditions:
- entity: sensor.s_h_b_pc_cpu_usage
state_not: unavailable
card:
#----------------------------------------------------------------
# Bild Entität Karte
#----------------------------------------------------------------
type: picture-entity
show_state: false
show_name: false
camera_view: auto
entity: switch.display_s_h_b_pc
camera_image: camera.s_h_b_pc_screen_0
card_mod:
style: |
ha-card {
border: none;
background: transparent
}
#----------------------------------------------------------------
# Bedingungs Karte
#----------------------------------------------------------------
- type: conditional
conditions:
- entity: sensor.s_h_b_pc_cpu_usage
state_not: unavailable
card:
#----------------------------------------------------------------
# Entitäten Karte
#----------------------------------------------------------------
type: entities
entities:
- entity: switch.display_s_h_b_pc
name: Display
icon: mdi:monitor
- entity: sensor.s_h_b_pc_system_uptime
card_mod:
style: |
ha-card {
--ha-card-background: transperant;
color: {{ states['sensor.dashboard_primar_farbe'].state }};
border: none;
--paper-item-icon-color: white;
--secondary-text-color: white
}
#----------------------------------------------------------------
# Entitäten Karte
#----------------------------------------------------------------
- type: entities
entities:
- entity: sensor.az_buro_9_1min
name: Büro aktuelle Leistung
- entity: sensor.verbrauch_az_buro
name: Büro gesamt Verbrauch
card_mod:
style: |
ha-card {
--ha-card-background: transperant;
color: {{ states['sensor.dashboard_primar_farbe'].state }};
border: none;
--paper-item-icon-color: white;
--secondary-text-color: white
}
#----------------------------------------------------------------
# Horizontaler Stapel
#----------------------------------------------------------------
- type: horizontal-stack
cards:
#----------------------------------------------------------------
# Custom Button Karten
#----------------------------------------------------------------
- type: custom:button-card
entity: input_button.shb_buro_start
show_name: true
show_icon: true
size: 30%
tap_action:
action: call-service
service: input_button.press
service_data:
entity_id: input_button.shb_buro_start
name: EIN
icon: mdi:power
styles:
name:
- color: var(--paper-item-icon-color)
icon:
- color: var(--paper-item-icon-active-color)
card_mod:
style: |
ha-card {
border: none;
background: transparent
}
- type: custom:button-card
how_name: true
show_icon: true
size: 30%
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: S-H-B--PC_Ruhezustand
target: {}
name: AUS
icon: mdi:television-off
styles:
name:
- color: var(--paper-item-icon-color)
card_mod:
style: |
ha-card {
border: none;
background: transparent
}
- type: custom:button-card
show_name: true
show_icon: true
size: 30%
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: S-H-B--PC_Neustart
target: {}
name: NEU
icon: mdi:refresh
styles:
name:
- color: var(--paper-item-icon-color)
card_mod:
style: |
ha-card {
border: none;
background: transparent
}
- type: custom:button-card
show_name: true
show_icon: true
size: 30%
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: S-H-B--PC_Vivaldi
target: {}
name: Vivaldi
icon: mdi:google-chrome
styles:
name:
- color: var(--paper-item-icon-color)
card_mod:
style: |
ha-card {
border: none;
background: transparent
}
- type: custom:button-card
show_name: true
show_icon: true
size: 30%
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: S-H-B--PC_Firefox
target: {}
name: Firefox
icon: mdi:firefox
styles:
name:
- color: var(--paper-item-icon-color)
card_mod:
style: |
ha-card {
border: none;
background: transparent
}
#----------------------------------------------------------------
# Layout Position am Dashboard
#----------------------------------------------------------------
view_layout:
grid-area: pop3