Skip to content

Commit

Permalink
Create weatherstation_card.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HAuser1234 authored May 19, 2023
1 parent d7e48a4 commit 8843a32
Showing 1 changed file with 237 additions and 0 deletions.
237 changes: 237 additions & 0 deletions weatherstation_card.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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;
}

0 comments on commit 8843a32

Please sign in to comment.