|
1 |
| -type: entity |
2 |
| -entity: sensor.pooltemperatur_temperatur |
3 |
| -state_color: false |
4 |
| -name: " " |
5 |
| -theme: Temps |
| 1 | +type: custom:stack-in-card |
6 | 2 | card_mod:
|
7 | 3 | style: |
|
8 | 4 | ha-card {
|
9 |
| - text-align: center; |
10 |
| - --primary-text-color: |
11 |
| - {% if is_state('sensor.pooltemperature_color', 'steelblue') %} |
12 |
| - steelblue |
13 |
| - {% elif is_state('sensor.pooltemperature_color', 'green') %} |
14 |
| - green |
15 |
| - {% elif is_state('sensor.pooltemperature_color', 'orange') %} |
16 |
| - orange |
17 |
| - {% else %} |
18 |
| - red |
19 |
| - {% endif %}; |
| 5 | + margin-bottom: -10px !important; |
20 | 6 | }
|
21 |
| - .value { |
22 |
| - font-size: 45px !important; /* Ändere die Schriftgröße */ |
23 |
| - } |
24 |
| - .info { |
25 |
| - line-height: 45px !important; |
26 |
| - } |
27 |
| -grid_options: |
28 |
| - columns: full |
29 |
| - rows: 2.1 |
| 7 | +cards: |
| 8 | + - type: entity |
| 9 | + entity: sensor.pooltemperatur_temperatur |
| 10 | + state_color: false |
| 11 | + name: " " |
| 12 | + theme: Temps |
| 13 | + card_mod: |
| 14 | + style: | |
| 15 | + ha-card { |
| 16 | + border: none !important; |
| 17 | + text-align: center; |
| 18 | + --primary-text-color: |
| 19 | + {% if is_state('sensor.pooltemperature_color', 'steelblue') %} |
| 20 | + steelblue |
| 21 | + {% elif is_state('sensor.pooltemperature_color', 'green') %} |
| 22 | + green |
| 23 | + {% elif is_state('sensor.pooltemperature_color', 'orange') %} |
| 24 | + orange |
| 25 | + {% else %} |
| 26 | + red |
| 27 | + {% endif %}; |
| 28 | + } |
| 29 | + .value { |
| 30 | + font-size: 45px !important; /* Ändere die Schriftgröße */ |
| 31 | + } |
| 32 | + .info { |
| 33 | + line-height: 35px !important; |
| 34 | + } |
| 35 | + - type: custom:mod-card |
| 36 | + card: |
| 37 | + type: custom:mushroom-template-card |
| 38 | + card_mod: |
| 39 | + style: | |
| 40 | + ha-card { |
| 41 | + height: 1px; |
| 42 | + border-bottom: 1px; |
| 43 | + background-color: grey; |
| 44 | + margin-left: 20px; |
| 45 | + margin-right: 20px; |
| 46 | + } |
| 47 | + - type: horizontal-stack |
| 48 | + cards: |
| 49 | + - type: entities |
| 50 | + entities: |
| 51 | + - entity: sensor.pooltemp_statistik_max |
| 52 | + icon: mdi:temperature-celsius |
| 53 | + name: Max |
| 54 | + - entity: sensor.pooltemp_statistik_min |
| 55 | + icon: mdi:temperature-celsius |
| 56 | + name: Min |
| 57 | + theme: grey-icon |
| 58 | + card_mod: |
| 59 | + style: | |
| 60 | + ha-card { |
| 61 | + background: none !important; |
| 62 | + box-shadow: none !important; |
| 63 | + border: none !important; |
| 64 | + border-right: 1px solid grey !important; |
| 65 | + border-radius: 0px !important; |
| 66 | + } |
| 67 | + - type: vertical-stack |
| 68 | + cards: |
| 69 | + - type: markdown |
| 70 | + card_mod: |
| 71 | + style: | |
| 72 | + ha-card { |
| 73 | + background: none !important; |
| 74 | + box-shadow: none !important; |
| 75 | + border: none !important; |
| 76 | + border-radius: 0px !important; |
| 77 | + margin-top: 10px; |
| 78 | + margin-left: 20px; |
| 79 | + } |
| 80 | + content: > |
| 81 | + Datum: {{ (states('sensor.pooltemp_statistik_max_date') | |
| 82 | + as_datetime).strftime('%d.%m.%Y') }} |
| 83 | + - type: markdown |
| 84 | + card_mod: |
| 85 | + style: | |
| 86 | + ha-card { |
| 87 | + background: none !important; |
| 88 | + box-shadow: none !important; |
| 89 | + border: none !important; |
| 90 | + border-radius: 0px !important; |
| 91 | + margin-top: -12px; |
| 92 | + margin-left: 20px; |
| 93 | + } |
| 94 | + content: > |
| 95 | + Datum: {{ (states('sensor.pooltemp_statistik_min_date') | |
| 96 | + as_datetime).strftime('%d.%m.%Y') }} |
| 97 | + - type: custom:mod-card |
| 98 | + card: |
| 99 | + type: custom:mushroom-template-card |
| 100 | + card_mod: |
| 101 | + style: | |
| 102 | + ha-card { |
| 103 | + height: 1px; |
| 104 | + border-bottom: 1px; |
| 105 | + background-color: grey; |
| 106 | + margin-left: 20px; |
| 107 | + margin-right: 20px; |
| 108 | + } |
| 109 | + - type: custom:mini-graph-card |
| 110 | + entities: |
| 111 | + - entity: sensor.pooltemperatur_temperatur |
| 112 | + name: " " |
| 113 | + hours_to_show: 96 |
| 114 | + refresh_interval: 10 |
| 115 | + points_per_hour: 0.25 |
| 116 | + height: 50 |
| 117 | + show: |
| 118 | + labels: true |
| 119 | + name: true |
| 120 | + state: false |
| 121 | + icon: false |
| 122 | + card_mod: |
| 123 | + style: | |
| 124 | + ha-card { |
| 125 | + background: none !important; |
| 126 | + box-shadow: none !important; |
| 127 | + border: none !important; |
| 128 | + border-radius: 0px !important; |
| 129 | + } |
0 commit comments