Code kopieren & zu Dashboards
Vollständige Steuerung und Überwachung des Garagentors mit Sicherheitsfeatures, Automatisierung und Umgebungssteuerung. - Status-Visualisierung: Farbcodierte Anzeige des Tor-Status - **Manuelle St...
Vollständige Steuerung und Überwachung des Garagentors mit Sicherheitsfeatures, Automatisierung und Umgebungssteuerung.
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
# Garagentor Dashboard Card
# Steuerung und Überwachung des Garagentors mit Status-Anzeige
type: vertical-stack
cards:
# Header mit Garagentor Status
- type: horizontal-stack
cards:
- type: markdown
content: |
# 🏠 Garage
**{{ states('cover.garage_door') | title }}**
card_mod:
style: |
ha-card {
background: linear-gradient(135deg,
{% if is_state('cover.garage_door', 'open') %}#4caf50
{% elif is_state('cover.garage_door', 'closed') %}#2196f3
{% elif is_state('cover.garage_door', 'opening') or is_state('cover.garage_door', 'closing') %}#ff9800
{% else %}#9e9e9e
{% endif %},
{% if is_state('cover.garage_door', 'open') %}#388e3c
{% elif is_state('cover.garage_door', 'closed') %}#1976d2
{% elif is_state('cover.garage_door', 'opening') or is_state('cover.garage_door', 'closing') %}#f57c00
{% else %}#757575
{% endif %});
color: white;
border-radius: 15px 15px 0 0;
text-align: center;
}
# Schnell-Status Icons
- type: glance
entities:
- entity: binary_sensor.garage_door_contact
name: "Tor"
- entity: binary_sensor.garage_motion
name: "Bewegung"
- entity: binary_sensor.garage_light_barrier
name: "Lichtschranke"
columns: 3
card_mod:
style: |
ha-card {
background: rgba(255,255,255,0.1);
color: white;
border-radius: 0 15px 0 0;
border: none;
}
# Hauptsteuerung
- type: horizontal-stack
cards:
# Garagentor Steuerung
- type: vertical-stack
cards:
# Cover-Steuerung mit Animation
- type: cover
entity: cover.garage_door
name: "Garagentor"
card_mod:
style: |
ha-card {
border-radius: 15px;
overflow: hidden;
}
.state {
{% if is_state('cover.garage_door', 'opening') or is_state('cover.garage_door', 'closing') %}
animation: pulse 2s infinite;
{% endif %}
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
# Manuelle Buttons
- type: horizontal-stack
cards:
- type: button
name: "Öffnen"
icon: "mdi:garage-open"
tap_action:
action: call-service
service: cover.open_cover
target:
entity_id: cover.garage_door
hold_action:
action: more-info
card_mod:
style: |
ha-card {
background: linear-gradient(45deg, #4caf50, #388e3c);
color: white;
border-radius: 10px;
}
- type: button
name: "Stopp"
icon: "mdi:stop"
tap_action:
action: call-service
service: cover.stop_cover
target:
entity_id: cover.garage_door
card_mod:
style: |
ha-card {
background: linear-gradient(45deg, #ff9800, #f57c00);
color: white;
border-radius: 10px;
}
- type: button
name: "Schließen"
icon: "mdi:garage"
tap_action:
action: call-service
service: cover.close_cover
target:
entity_id: cover.garage_door
hold_action:
action: more-info
card_mod:
style: |
ha-card {
background: linear-gradient(45deg, #2196f3, #1976d2);
color: white;
border-radius: 10px;
}
# Status und Sensoren
- type: entities
title: "📊 Status & Sensoren"
entities:
- entity: sensor.garage_door_position
name: "Position"
icon: "mdi:garage-variant"
- entity: binary_sensor.garage_door_contact
name: "Tor-Kontakt"
icon: "mdi:garage-alert-variant"
- entity: binary_sensor.garage_motion
name: "Bewegung erkannt"
icon: "mdi:motion-sensor"
- entity: binary_sensor.garage_light_barrier
name: "Lichtschranke"
icon: "mdi:gate"
- entity: sensor.garage_door_battery
name: "Batterie Fernbedienung"
icon: "mdi:battery"
card_mod:
style: |
ha-card {
border-radius: 15px;
}
# Garage Umgebung
- type: horizontal-stack
cards:
# Beleuchtung
- type: entities
title: "💡 Beleuchtung"
entities:
- entity: switch.garage_main_light
name: "Hauptlicht"
icon: "mdi:ceiling-light"
- entity: switch.garage_work_light
name: "Arbeitslicht"
icon: "mdi:desk-lamp"
- entity: switch.garage_automatic_light
name: "Automatiklicht"
icon: "mdi:lightbulb-auto"
card_mod:
style: |
ha-card {
border-radius: 15px;
}
# Weitere Geräte
- type: entities
title: "🔌 Geräte"
entities:
- entity: switch.garage_outlet_1
name: "Steckdose 1"
icon: "mdi:power-socket-eu"
- entity: switch.garage_outlet_2
name: "Steckdose 2"
icon: "mdi:power-socket-eu"
- entity: switch.garage_ventilation
name: "Lüftung"
icon: "mdi:fan"
- entity: sensor.garage_temperature
name: "Temperatur"
icon: "mdi:thermometer"
card_mod:
style: |
ha-card {
border-radius: 15px;
}
# Sicherheit und Überwachung
- type: conditional
conditions:
- entity: binary_sensor.garage_security_issue
state: "on"
card:
type: markdown
content: |
## ⚠️ Sicherheitshinweis
{% if is_state('binary_sensor.garage_door_open_too_long', 'on') %}
🕐 **Tor seit {{ states('sensor.garage_door_open_duration') }} Minuten geöffnet**
{% endif %}
{% if is_state('binary_sensor.garage_light_barrier_blocked', 'on') %}
🚧 **Lichtschranke blockiert** - Hindernis im Torbereich
{% endif %}
{% if is_state('binary_sensor.garage_door_battery_low', 'on') %}
🔋 **Batterie der Fernbedienung schwach** ({{ states('sensor.garage_door_battery') }}%)
{% endif %}
card_mod:
style: |
ha-card {
background: rgba(244, 67, 54, 0.1);
border: 2px solid #f44336;
border-radius: 15px;
}
# Zeitgesteuertes öffnen/schließen
- type: entities
title: "⏰ Automatik"
entities:
- entity: input_boolean.garage_auto_close
name: "Automatisches Schließen"
icon: "mdi:garage-alert"
- entity: input_number.garage_auto_close_delay
name: "Schließen nach (min)"
icon: "mdi:timer"
- entity: input_boolean.garage_night_mode
name: "Nachtmodus"
icon: "mdi:sleep"
- entity: automation.garage_welcome_home
name: "Willkommen-Automatik"
icon: "mdi:home-assistant"
card_mod:
style: |
ha-card {
border-radius: 15px;
}
# Schnellaktionen
- type: horizontal-stack
cards:
- type: button
name: "Wegfahren"
icon: "mdi:car"
tap_action:
action: call-service
service: script.garage_leaving_home
card_mod:
style: |
ha-card {
background: linear-gradient(45deg, #9c27b0, #7b1fa2);
color: white;
border-radius: 15px;
}
- type: button
name: "Heimkommen"
icon: "mdi:home-import-outline"
tap_action:
action: call-service
service: script.garage_arriving_home
card_mod:
style: |
ha-card {
background: linear-gradient(45deg, #4caf50, #388e3c);
color: white;
border-radius: 15px;
}
- type: button
name: "Wartung"
icon: "mdi:wrench"
tap_action:
action: call-service
service: script.garage_maintenance_mode
card_mod:
style: |
ha-card {
background: linear-gradient(45deg, #ff9800, #f57c00);
color: white;
border-radius: 15px;
}
- type: button
name: "Sicherheit"
icon: "mdi:shield-check"
tap_action:
action: call-service
service: script.garage_security_check
card_mod:
style: |
ha-card {
background: linear-gradient(45deg, #f44336, #d32f2f);
color: white;
border-radius: 15px;
}