-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_dashboard.yaml
More file actions
507 lines (483 loc) · 24.3 KB
/
Copy pathexample_dashboard.yaml
File metadata and controls
507 lines (483 loc) · 24.3 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
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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
## AURUM – Beispiel-Dashboard (v1.7.0+)
## Kopiere den Inhalt in ein neues Dashboard:
## Einstellungen → Dashboards → Dashboard hinzufügen → ⋮ → Roher Konfigurations-Editor
##
## Voraussetzung: Mushroom Cards (kostenlos über HACS installierbar)
## https://github.com/piitaya/lovelace-mushroom
##
## Geräte anpassen:
## Ersetze "waschmaschine" und "heizen_mobil" durch deine Geräteslugs.
## Den Slug findest du unter Einstellungen → AURUM → Konfigurieren → Gerät bearbeiten.
## Dupliziere den Gerät-Block (vertical-stack) für jedes weitere Gerät.
##
## Strompreis-Sensoren anpassen:
## Die Preis-Entitäten im Abschnitt "STROMPREIS" stammen von tibber_prices.
## Ersetze "DEIN_TIBBER_PRAEFIX" durch deinen tibber_prices Präfix.
title: AURUM Solar
views:
- title: Solar
icon: mdi:solar-power
path: aurum
cards:
# ══════════════════════════════════════════════════════
# ÜBERSCHRIFT
# ══════════════════════════════════════════════════════
- type: custom:mushroom-title-card
title: ☀️ AURUM
subtitle: Automatische Solar-Nutzung
# ══════════════════════════════════════════════════════
# ENERGIE-ÜBERSICHT
# Zeigt auf einen Blick: PV · Netz · Akku · Haus
# ══════════════════════════════════════════════════════
- type: custom:mushroom-chips-card
chips:
# PV-Produktion
- type: template
icon: mdi:solar-panel-large
icon_color: amber
content: "{{ states('sensor.aurum_pv_power') | int(0) }} W"
tap_action:
action: more-info
entity: sensor.aurum_pv_power
# Netz: grün = Einspeisung ↑, rot = Bezug ↓
- type: template
icon: mdi:transmission-tower
icon_color: >
{% if states('sensor.aurum_grid_power') | float(0) > 50 %}red
{% elif states('sensor.aurum_grid_power') | float(0) < -50 %}green
{% else %}grey{% endif %}
content: >
{% set g = states('sensor.aurum_grid_power') | float(0) %}
{% if g > 50 %}↓ {{ g | int }} W
{% elif g < -50 %}↑ {{ (g | abs) | int }} W
{% else %}≈ 0 W{% endif %}
tap_action:
action: more-info
entity: sensor.aurum_grid_power
# Akku-Ladestand
- type: template
icon: >
{% set soc = states('sensor.aurum_battery_soc') | float(-1) %}
{% if soc < 0 %}mdi:battery-unknown
{% elif soc > 90 %}mdi:battery
{% elif soc > 70 %}mdi:battery-80
{% elif soc > 50 %}mdi:battery-60
{% elif soc > 30 %}mdi:battery-40
{% else %}mdi:battery-20{% endif %}
icon_color: >
{% set soc = states('sensor.aurum_battery_soc') | float(-1) %}
{{ 'green' if soc >= 80 else 'orange' if soc >= 30 else 'red' if soc >= 0 else 'grey' }}
content: >
{% set soc = states('sensor.aurum_battery_soc') | float(-1) %}
{{ soc | int ~ ' %' if soc >= 0 else '–' }}
tap_action:
action: more-info
entity: sensor.aurum_battery_soc
# Hausverbrauch
- type: template
icon: mdi:home-lightning-bolt
icon_color: blue
content: "{{ states('sensor.aurum_house_consumption') | int(0) }} W"
tap_action:
action: more-info
entity: sensor.aurum_house_consumption
# ══════════════════════════════════════════════════════
# AURUM STATUS
# Zeigt was AURUM gerade macht und warum
# ══════════════════════════════════════════════════════
- type: custom:mushroom-template-card
primary: >
{% set excess = states('sensor.aurum_excess_power') | float(0) %}
{% if excess >= 500 %}Guter Überschuss – {{ excess | int }} W für Geräte frei
{% elif excess >= 100 %}Wenig Überschuss – {{ excess | int }} W frei
{% elif excess >= 0 %}Kaum Überschuss – Geräte warten
{% else %}Bezug aus dem Netz – kein Überschuss
{% endif %}
secondary: >
{% set mode = states('sensor.aurum_battery_mode') %}
{% if mode == 'normal' %}🔋 Akku OK
{% elif mode == 'low_soc' %}⚠️ Akku niedrig – nur Netzüberschuss für Geräte
{% elif mode == 'charging' %}⚡ Akku lädt – keine Geräte
{% else %}–{% endif %}
{% set kwh = states('sensor.aurum_forecast_remaining') | float(-1) %}
{% if kwh >= 0 %} · Prognose heute noch: {{ kwh | round(1) }} kWh{% endif %}
icon: mdi:sun-wireless
icon_color: >
{% set excess = states('sensor.aurum_excess_power') | float(0) %}
{{ 'amber' if excess >= 200 else 'blue' if excess >= 0 else 'grey' }}
fill_container: false
tap_action:
action: none
# ══════════════════════════════════════════════════════
# STROMPREIS (nur sichtbar wenn Preis-Sensor konfiguriert)
# Zeigt aktuellen Preis, Niveau und Bestpreis-Countdown
# ══════════════════════════════════════════════════════
- type: conditional
conditions:
- condition: state
entity: sensor.aurum_electricity_price
state_not: unavailable
card:
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Strompreis
- type: custom:mushroom-template-card
primary: >
{% set p = states('sensor.aurum_electricity_price') | float(0) %}
{{ p | round(1) }} ct/kWh
secondary: >
{% set level = state_attr('sensor.aurum_electricity_price', 'price_level') %}
{% set cheap = state_attr('sensor.aurum_electricity_price', 'cheap_period') %}
{% set starts = state_attr('sensor.aurum_electricity_price', 'cheap_period_starts_in_min') %}
{% if cheap %}⚡ Bestpreis aktiv
{% elif starts is not none and starts | int(0) > 0 %}⏳ Bestpreis in {{ starts }} min
{% elif level == 'very_cheap' %}💚 Sehr günstig
{% elif level == 'cheap' %}🟢 Günstig
{% elif level == 'normal' %}🟡 Normal
{% elif level == 'expensive' %}🟠 Teuer
{% elif level == 'very_expensive' %}🔴 Sehr teuer
{% else %}–{% endif %}
icon: mdi:cash
icon_color: >
{% set level = state_attr('sensor.aurum_electricity_price', 'price_level') %}
{% set cheap = state_attr('sensor.aurum_electricity_price', 'cheap_period') %}
{% if cheap %}green
{% elif level in ('very_cheap', 'cheap') %}green
{% elif level == 'normal' %}amber
{% elif level in ('expensive', 'very_expensive') %}red
{% else %}grey{% endif %}
tap_action:
action: more-info
entity: sensor.aurum_electricity_price
# Preis-Chips: Min/Max/Bestpreis Zeitraum
# Passe "DEIN_TIBBER_PRAEFIX" an deinen tibber_prices Präfix an
- type: custom:mushroom-chips-card
chips:
- type: template
icon: mdi:arrow-down-bold
icon_color: green
content: >
Min: {{ states('sensor.DEIN_TIBBER_PRAEFIX_mindestpreis_heute') | float(0) | round(1) }} ct
- type: template
icon: mdi:arrow-up-bold
icon_color: red
content: >
Max: {{ states('sensor.DEIN_TIBBER_PRAEFIX_hochstpreis_heute') | float(0) | round(1) }} ct
- type: template
icon: mdi:clock-fast
icon_color: >
{% set cheap = state_attr('sensor.aurum_electricity_price', 'cheap_period') %}
{{ 'green' if cheap else 'grey' }}
content: >
{% set cheap = state_attr('sensor.aurum_electricity_price', 'cheap_period') %}
{% set starts = state_attr('sensor.aurum_electricity_price', 'cheap_period_starts_in_min') %}
{% if cheap %}Bestpreis läuft
{% elif starts is not none and starts | int(0) > 0 %}Bestpreis in {{ starts }} min
{% else %}kein Bestpreis{% endif %}
# ══════════════════════════════════════════════════════
# AKKU-LADESTAND (nur sichtbar wenn Akku konfiguriert)
# ══════════════════════════════════════════════════════
- type: conditional
conditions:
- condition: numeric_state
entity: sensor.aurum_battery_soc
above: -1
card:
type: gauge
entity: sensor.aurum_battery_soc
name: Akku-Ladestand
min: 0
max: 100
needle: true
severity:
green: 80
yellow: 30
red: 0
- type: conditional
conditions:
- condition: numeric_state
entity: sensor.aurum_battery_soc
above: -1
card:
type: horizontal-stack
cards:
- type: custom:mushroom-number-card
entity: number.aurum_target_soc
name: Ziel-Ladestand
icon: mdi:battery-charging-80
icon_color: green
display_mode: slider
fill_container: true
- type: custom:mushroom-number-card
entity: number.aurum_min_soc
name: Mindest-Ladestand
icon: mdi:battery-alert
icon_color: orange
display_mode: slider
fill_container: true
# ══════════════════════════════════════════════════════
# GERÄTE
# Pro Gerät: Status, Leistung, Laufzeit + Steuerung
#
# Farb-Bedeutung:
# Grün/Orange = läuft mit PV-Strom
# Cyan = läuft mit günstigem Netzstrom
# Amber/Gelb = wartet auf genug Überschuss
# Blau = manuell eingeschaltet
# Grau = aus
# ══════════════════════════════════════════════════════
- type: custom:mushroom-title-card
title: Geräte
subtitle: Automatisch gesteuert von AURUM
# ──────────────────────────────────────────────────────
# Gerät: Waschmaschine
# Slug: waschmaschine | Startup Detection aktiv
# price_mode: cheap_grid (Beispiel für Strompreis-Steuerung)
# ──────────────────────────────────────────────────────
- type: vertical-stack
cards:
- type: custom:mushroom-template-card
primary: Waschmaschine
secondary: >
{% set s = states('sensor.aurum_waschmaschine') %}
{% set p = states('sensor.aurum_waschmaschine_power') | int(0) %}
{% set r = states('sensor.aurum_waschmaschine_runtime') | float(0) | round(0) | int %}
{% set wh = states('sensor.aurum_waschmaschine_energy_today') | float(0) %}
{% set e = (wh / 1000) | round(2) if wh > 0 else 0 %}
{% set reason = state_attr('sensor.aurum_waschmaschine', 'scheduling_reason') %}
{% set cheap = state_attr('sensor.aurum_waschmaschine', 'cheap_period') %}
{% set starts = state_attr('sensor.aurum_waschmaschine', 'cheap_period_starts_in_min') %}
{% if s == 'running' %}
{% if reason == 'cheap_grid' %}⚡ Läuft – günstiger Strom · {{ p }} W · {{ r }} min · {{ e }} kWh
{% else %}▶ Läuft mit PV-Strom · {{ p }} W · {{ r }} min · {{ e }} kWh{% endif %}
{% elif s == 'waiting' %}
⏳ Wartet auf PV-Überschuss · {{ r }} min · {{ e }} kWh
{% elif s == 'standby' %}
◉ Bereit – erkennt automatisch wenn Programm startet
{% elif s == 'on' %}
{% if reason == 'cheap_grid' %}⚡ Eingeschaltet – günstiger Strom · {{ p }} W · {{ r }} min · {{ e }} kWh
{% else %}✓ Eingeschaltet · {{ p }} W · {{ r }} min · {{ e }} kWh{% endif %}
{% elif s == 'manual_override' %}
✋ Manuell eingeschaltet · {{ p }} W · {{ e }} kWh
{% elif s == 'done' %}
✅ Programm fertig · {{ r }} min · {{ e }} kWh
{% else %}
{% if cheap %}⚡ Bestpreis aktiv – wartet auf Debounce
{% elif starts is not none and starts | int(0) > 0 %}⏳ Bestpreis in {{ starts }} min
{% else %}✗ Aus · {{ r }} min · {{ e }} kWh heute{% endif %}
{% endif %}
icon: mdi:washing-machine
icon_color: >
{% set s = states('sensor.aurum_waschmaschine') %}
{% set reason = state_attr('sensor.aurum_waschmaschine', 'scheduling_reason') %}
{% if s in ('on', 'running') and reason == 'cheap_grid' %}cyan
{% elif s in ('on', 'running') %}green
{% elif s in ('waiting', 'standby') %}amber
{% elif s == 'manual_override' %}blue
{% elif s == 'done' %}teal
{% else %}grey{% endif %}
badge_icon: >
{% set s = states('sensor.aurum_waschmaschine') %}
{% set reason = state_attr('sensor.aurum_waschmaschine', 'scheduling_reason') %}
{% if s in ('on', 'running') and reason == 'cheap_grid' %}mdi:flash
{% elif s in ('on', 'running') %}mdi:check-circle
{% elif s == 'waiting' %}mdi:clock-outline
{% elif s == 'standby' %}mdi:eye-outline
{% elif s == 'manual_override' %}mdi:account
{% elif s == 'done' %}mdi:check-all
{% else %}mdi:pause-circle{% endif %}
badge_color: >
{% set s = states('sensor.aurum_waschmaschine') %}
{% set reason = state_attr('sensor.aurum_waschmaschine', 'scheduling_reason') %}
{% if s in ('on', 'running') and reason == 'cheap_grid' %}cyan
{% elif s in ('on', 'running') %}green
{% elif s in ('waiting', 'standby') %}amber
{% elif s == 'manual_override' %}blue
{% elif s == 'done' %}teal
{% else %}grey{% endif %}
tap_action:
action: more-info
entity: sensor.aurum_waschmaschine
# Steuerung: Manuell + Muss heute
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: switch.aurum_waschmaschine_override
name: Manuell
icon: mdi:account-switch
icon_color: blue
- type: custom:mushroom-entity-card
entity: switch.aurum_waschmaschine_muss_heute
name: Muss heute
icon: mdi:calendar-clock
icon_color: orange
# Deadline + Maximalpreis
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: time.aurum_waschmaschine_deadline
name: Deadline
icon: mdi:clock-alert-outline
icon_color: orange
- type: custom:mushroom-number-card
entity: number.aurum_waschmaschine_max_price
name: Maximalpreis
icon: mdi:cash-lock
icon_color: cyan
display_mode: buttons
fill_container: true
# ──────────────────────────────────────────────────────
# Gerät: Heizen Mobil
# Slug: heizen_mobil | Normales Gerät (unterbrechbar)
# price_mode: solar_only (Standard – kein Netzstrom)
# ──────────────────────────────────────────────────────
- type: vertical-stack
cards:
- type: custom:mushroom-template-card
primary: Heizen Mobil
secondary: >
{% set s = states('sensor.aurum_heizen_mobil') %}
{% set p = states('sensor.aurum_heizen_mobil_power') | int(0) %}
{% set r = states('sensor.aurum_heizen_mobil_runtime') | float(0) | round(0) | int %}
{% set wh = states('sensor.aurum_heizen_mobil_energy_today') | float(0) %}
{% set e = (wh / 1000) | round(2) if wh > 0 else 0 %}
{% if s in ('on', 'running') %}
▶ Läuft mit PV-Strom · {{ p }} W · {{ r }} min · {{ e }} kWh
{% elif s == 'manual_override' %}
✋ Manuell eingeschaltet · {{ p }} W · {{ e }} kWh
{% else %}
✗ Aus · {{ r }} min · {{ e }} kWh heute
{% endif %}
icon: mdi:radiator
icon_color: >
{% set s = states('sensor.aurum_heizen_mobil') %}
{{ 'orange' if s in ('on', 'running')
else 'blue' if s == 'manual_override'
else 'grey' }}
badge_icon: >
{% set s = states('sensor.aurum_heizen_mobil') %}
{{ 'mdi:check-circle' if s in ('on', 'running')
else 'mdi:account' if s == 'manual_override'
else 'mdi:pause-circle' }}
badge_color: >
{% set s = states('sensor.aurum_heizen_mobil') %}
{{ 'orange' if s in ('on', 'running')
else 'blue' if s == 'manual_override'
else 'grey' }}
tap_action:
action: more-info
entity: sensor.aurum_heizen_mobil
# Steuerung: Manuell + Muss heute
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: switch.aurum_heizen_mobil_override
name: Manuell
icon: mdi:account-switch
icon_color: blue
- type: custom:mushroom-entity-card
entity: switch.aurum_heizen_mobil_muss_heute
name: Muss heute
icon: mdi:calendar-clock
icon_color: orange
- type: custom:mushroom-number-card
entity: number.aurum_heizen_mobil_max_price
name: Maximalpreis
icon: mdi:cash-lock
icon_color: cyan
display_mode: buttons
fill_container: true
# ══════════════════════════════════════════════════════
# LAUFZEIT HEUTE
# ══════════════════════════════════════════════════════
- type: custom:mushroom-title-card
title: Laufzeit heute
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Waschmaschine
secondary: >
{{ states('sensor.aurum_waschmaschine_runtime') | float(0) | round(0) | int }} min
icon: mdi:washing-machine
icon_color: amber
tap_action:
action: more-info
entity: sensor.aurum_waschmaschine_runtime
- type: custom:mushroom-template-card
primary: Heizen Mobil
secondary: >
{{ states('sensor.aurum_heizen_mobil_runtime') | float(0) | round(0) | int }} min
icon: mdi:radiator
icon_color: orange
tap_action:
action: more-info
entity: sensor.aurum_heizen_mobil_runtime
# ══════════════════════════════════════════════════════
# ENERGIE HEUTE (kWh pro Gerät + Gesamt)
# ══════════════════════════════════════════════════════
- type: custom:mushroom-title-card
title: Energie heute
- type: custom:mushroom-template-card
primary: >
{% set wh = states('sensor.aurum_energy_today') | float(0) %}
Gesamt: {{ (wh / 1000) | round(2) }} kWh
secondary: >
Verbrauch aller AURUM-Geräte heute
icon: mdi:sigma
icon_color: amber
tap_action:
action: more-info
entity: sensor.aurum_energy_today
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Waschmaschine
secondary: >
{% set wh = states('sensor.aurum_waschmaschine_energy_today') | float(0) %}
{{ (wh / 1000) | round(2) }} kWh
icon: mdi:washing-machine
icon_color: amber
tap_action:
action: more-info
entity: sensor.aurum_waschmaschine_energy_today
- type: custom:mushroom-template-card
primary: Heizen Mobil
secondary: >
{% set wh = states('sensor.aurum_heizen_mobil_energy_today') | float(0) %}
{{ (wh / 1000) | round(2) }} kWh
icon: mdi:radiator
icon_color: orange
tap_action:
action: more-info
entity: sensor.aurum_heizen_mobil_energy_today
# ══════════════════════════════════════════════════════
# DIAGNOSE
# Für Fehlersuche und Feinabstimmung
# ══════════════════════════════════════════════════════
- type: custom:mushroom-title-card
title: Diagnose
- type: entities
entities:
- entity: sensor.aurum_excess_power
name: Überschuss für Geräte
icon: mdi:lightning-bolt
- entity: sensor.aurum_battery_mode
name: Akku-Modus
icon: mdi:battery-heart
- entity: sensor.aurum_electricity_price
name: Strompreis
icon: mdi:cash
- entity: sensor.aurum_forecast_remaining
name: PV-Prognose heute noch
icon: mdi:solar-power-variant-outline
- entity: sensor.aurum_budget
name: Geräte-Budget
icon: mdi:cash-clock
- entity: sensor.aurum_safety_factor
name: Prognose-Korrekturfaktor
icon: mdi:shield-check
- entity: sensor.aurum_cycle
name: Update-Zyklus
icon: mdi:counter
show_header_toggle: false