-
Notifications
You must be signed in to change notification settings - Fork 1
/
weatherstation_card.yaml
237 lines (231 loc) · 7.72 KB
/
weatherstation_card.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
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
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: Lokal
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-title-card
title: '{{states.sensor.local_forecast.state}}'
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Jetzt
secondary: >-
{{states.sensor.local_forecast.attributes.forecast_short_term[0]}}
{%if
states.sensor.local_forecast.attributes.forecast_temp_short[1] >=
0%}{{states.sensor.local_forecast.attributes.temperature}}°C{%endif%}
icon: '{{states.sensor.weatherstation_now.attributes.weather_icon}}'
icon_color: none
layout: vertical
multiline_secondary: true
entity: sensor.local_forecast
tap_action:
action: more-info
card_mod:
style: |
:host {
--mush-icon-symbol-size: 0.9em;
}
- type: custom:mushroom-template-card
primary: >-
~
{{states.sensor.local_forecast_zambretti_detail.attributes.first_time[0]}}
Uhr
secondary: >-
Regen:
{{states.sensor.local_forecast_zambretti_detail.attributes.rain_prob[0]}}%
{%if
states.sensor.local_forecast.attributes.forecast_temp_short[1] ==
0%}{{states.sensor.local_forecast.attributes.forecast_temp_short[0]}}°C{%endif%}
icon: >-
{{states.sensor.local_forecast_zambretti_detail.attributes.icons[0]}}
icon_color: none
layout: vertical
multiline_secondary: true
entity: sensor.local_forecast
tap_action:
action: more-info
card_mod:
style: |
:host {
--mush-icon-symbol-size: 0.9em;
}
- type: custom:mushroom-template-card
primary: >-
~
{{states.sensor.local_forecast_zambretti_detail.attributes.second_time[0]}}
Uhr
secondary: >-
Regen:
{{states.sensor.local_forecast_zambretti_detail.attributes.rain_prob[1]}}%
{%if
states.sensor.local_forecast.attributes.forecast_temp_short[1] ==
1%}{{states.sensor.local_forecast.attributes.forecast_temp_short[0]}}°C{%endif%}
icon: >-
{{states.sensor.local_forecast_zambretti_detail.attributes.icons[1]}}
icon_color: none
layout: vertical
multiline_secondary: true
entity: sensor.local_forecast
tap_action:
action: more-info
card_mod:
style: |
:host {
--mush-icon-symbol-size: 0.9em;
}
- type: custom:mushroom-template-card
primary: >-
Zukunft:
{{states.sensor.local_forecast.attributes.forecast_zambretti[0]}}
secondary: >-
Luftdruck:
{{states.sensor.local_forecast.attributes.forecast_pressure_trend[0]}}
{{states.sensor.local_forecast_pressurechange.state}} hpa in 3h
icon: mdi:weather-cloudy-arrow-right
multiline_secondary: true
icon_color: grey
fill_container: false
entity: sensor.local_forecast_zambretti_detail
tap_action:
action: more-info
- type: horizontal-stack
cards:
- type: tile
entity: sensor.weatherstationwind_gust
icon: mdi:weather-windy
color: grey
name: Böen
- type: custom:mushroom-template-card
primary: Wolken
secondary: >+
{%if states.sensor.weatherstation_cloudcover.state|int == -1%}??%
(Nacht){%else%}{{states.sensor.weatherstation_cloudcover.state}}%{%endif%}
icon: mdi:clouds
entity: sensor.weatherstation_cloudcover
icon_color: grey
tap_action:
action: more-info
card_mod:
style: |
ha-card {
--card-primary-font-size: 14px;
--card-primary-font-weight: 460;
--primary-text-color: dark-grey;
--card-secondary-font-weight: 400;
--secondary-text-color: dark-grey;
}
- type: tile
name: Druck
entity: sensor.weatherstation_barometer_relative
color: grey
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
hours_to_show: 12
points_per_hour: 4
show:
name: false
state: true
icon: false
color_thresholds:
- value: 0
color: '#4cf902'
- value: 1
color: '#02f98a'
- value: 2
color: '#02f9d0'
- value: 3
color: '#02bff9'
- value: 4
color: '#026df9'
- value: 6
color: '#9202f9'
- value: 8
color: '#c302f9'
- value: 10
color: '#f90286'
- value: 11
color: '#f90202'
entities:
- entity: sensor.weatherstation_uv
name: UV
- entity: sensor.weatherstation_solar_radiation
name: Helligkeit
show_state: true
color: '#4444FF'
y_axis: secondary
line_color: blue
font_size: 85
- type: custom:mini-graph-card
show:
name: false
state: true
icon: false
color_thresholds:
- value: 10
color: '#d802f9'
- value: 13
color: '#0206f9'
- value: 16
color: '#02d4f9'
- value: 20
color: '#02f950'
- value: 23
color: '#f9e902'
- value: 26
color: '#fc4a14'
- value: 29
color: '#fc2314'
- value: 32
color: '#7f000c'
- value: 35
color: '#50007f'
entities:
- entity: sensor.weatherstation_temperature
name: Temp.
- entity: sensor.weatherstation_humidity
name: Feuchtigkeit
show_state: true
color: '#4444FF'
y_axis: secondary
font_size: 85
- type: horizontal-stack
cards:
- type: custom:compass-card
indicator_sensors:
- sensor: sensor.weatherstation_wind_direction
indicator:
type: arrow_inward
value_sensors:
- sensor: sensor.weatherstation_wind_speed
compass:
north:
show: true
south:
show: true
offset: 0
east:
show: true
offset: 0
west:
show: true
offset: 0
tap_action:
entity: sensor.weatherstation_wind_speed
- type: custom:rain-gauge-card
show_warning: false
show_error: false
name: null
hourly_rate_entity: sensor.weatherstation_rainrate
entity: sensor.weatherstation_rain_daily
is_imperial: false
style: |
ha-card {
height: 100%;
border-top:300px;
padding-top: 36px;
}