Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: sections
- max_columns: 3
- title: ☀️Weather
- path: weather
- sections:
- - type: grid
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:vertical-stack-in-card
- cards:
- - type: custom:simple-weather-card
- entity: weather.forecast_home
- name: " "
- primary_info:
- - precipitation
- - humidity
- secondary_info:
- - wind_speed
- - wind_bearing
- - type: custom:hourly-weather
- entity: weather.forecast_home
- num_segments: "12"
- name: " "
- icons: true
- show_wind: "false"
- show_date: "false"
- show_precipitation_amounts: false
- show_precipitation_probability: false
- round_temperatures: true
- colors:
- clear-night: "#2e3440"
- cloudy: "#4c566a"
- partlycloudy: "#b2b7bf"
- rainy: "#5e81ac"
- sunny: "#ebcb8b"
- card_mod:
- style: |
- ha-card {
- border: none;
- }
- - type: custom:clock-weather-card
- entity: weather.forecast_home
- hide_clock: true
- date_pattern: ccc, d.MM.yy
- animated_icon: true
- hide_today_section: true
- grid_options:
- columns: full
- - type: custom:bubble-card
- card_type: button
- event_action:
- tap_action:
- action: more-info
- double_tap_action:
- action: none
- hold_action:
- action: none
- button_type: state
- entity: sensor.usa_air_quality_index
- max_value: 703
- min_value: 0
- name: AQI
- show_attribute: false
- sub_button:
- - entity: sensor.kleenex_pollen_radar_home_trees_level
- show_state: true
- show_name: false
- show_attribute: false
- attribute: level
- show_icon: true
- state_background: false
- show_background: false
- name: Trees
- icon: mdi:tree
- - entity: sensor.kleenex_pollen_radar_home_weeds_level
- name: Weeds
- icon: mdi:grass
- show_state: true
- state_background: true
- show_background: false
- - entity: sensor.kleenex_pollen_radar_home_weeds_level
- icon: mdi:flower-pollen
- show_background: false
- show_state: true
- show_attribute: false
- icon: ios:aqi-medium
- attribute: attribution
- modules:
- - badgy-condition-helper
- - bubble_chips
- progress_border:
- entity: sensor.kleenex_pollen_radar_home_grass
- attribute: level
- bubble_chips:
- justify-content: flex-start
- gap: 45
- badgy-condition-helper:
- entity_badges:
- "0":
- color: light-grey
- text_color: black
- entity: sensor.kleenex_pollen_radar_home_trees
- show_background: true
- show_unit: false
- show_if_off: false
- "1":
- color: light-grey
- text_color: black
- entity: sensor.kleenex_pollen_radar_home_grass
- show_unit: false
- "2":
- color: light-grey
- text_color: black
- entity: sensor.kleenex_pollen_radar_home_weeds
- show_unit: false
- styles: |2-
- .bubble-sub-button-icon {
- color: forestgreen !important;
- }
- column_span: 1
- - type: grid
- cards:
- - type: iframe
- url: >-
- https://embed.windy.com/embed.html?type=map&location=coordinates&metricRain=in&metricTemp=°F&metricWind=mph&zoom=5&overlay=radar&product=radar&level=surface&lat=xx.xxx&lon=-xx.xxx&detailLat=xxx&detailLon=-xx.xxx&marker=true&message=true
- grid_options:
- columns: full
- rows: 7.5
- view_layout:
- place-self: center stretch
- column_span: 2
- - type: grid
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- color_thresholds:
- - color: "#468FAF"
- value: 14
- - color: "#73B3D3"
- value: 32
- - color: "#8AC926"
- value: 60
- - color: "#FFCA3A"
- value: 75
- - color: "#FF595E"
- value: 90
- color_thresholds_transition: smooth
- name: Temperature
- entities:
- - entity: sensor.home_tempest_temperature
- name: Temperature
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- show_line: false
- show_points: false
- y_axis: secondary
- show_legend: false
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 2
- decimals: 0
- smoothing: true
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: custom:mini-graph-card
- name: Dew Point
- hours_to_show: 24
- points_per_hour: 2
- font_size: 65
- line_width: 4
- animate: true
- decimals: 0
- smoothing: true
- color_thresholds:
- - color: "#468FAF"
- value: 32
- - color: "#73B3D3"
- value: 50
- - color: "#8AC926"
- value: 60
- - color: "#FFCA3A"
- value: 65
- - color: "#FF595E"
- value: 70
- color_thresholds_transition: smooth
- entities:
- - entity: sensor.home_tempest_dew_point
- name: Dewpoint
- state_adaptive_color: false
- - entity: sensor.nightstate
- color: rgba(128,128,128,0.3)
- name: Night
- y_axis: secondary
- show_legend: false
- show_line: false
- show_points: false
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- grid_options:
- columns: 12
- rows: auto
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Humidity
- entities:
- - entity: sensor.home_tempest_humidity
- name: Humidity
- show_state: true
- show_legend: false
- state_adaptive_color: false
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 2
- decimals: 0
- smoothing: true
- color_thresholds_transition: smooth
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#468FAF"
- value: 20
- - color: "#73B3D3"
- value: 40
- - color: "#8AC926"
- value: 60
- - color: "#FFCA3A"
- value: 80
- - color: "#FF595E"
- value: 95
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: custom:mini-graph-card
- name: UV Index
- entities:
- - entity: sensor.home_sensors_uv_index
- name: UV
- show_state: true
- state_adaptive_color: false
- show_labels: false
- - entity: sensor.home_sensors_uv_description
- show_state: true
- show_legend: false
- show_graph: false
- smoothing: false
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 2
- decimals: 0
- smoothing: true
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#3EA72D"
- value: 2
- - color: "#FFF300"
- value: 5
- - color: "#F18B00"
- value: 7
- - color: "#E53210"
- value: 10
- - color: "#B567A4"
- value: 11
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- .states--secondary {
- font-size: 75%;
- margin-top: 5px;
- margin-right: 0px !important;
- font-weight: 500;
- }
- state_map:
- - value: low
- label: Low
- - value: moderate
- label: Moderate
- - value: high
- label: High
- - value: very-high
- label: Very High
- - value: extreme
- label: Extreme
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Pressure
- entities:
- - entity: sensor.home_tempest_cloud_pressure_sea_level
- name: Pressure
- show_state: true
- show_legend: false
- - entity: sensor.home_sensors_pressure_trend
- name: Pressure
- show_state: true
- show_legend: false
- show_graph: false
- smoothing: false
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 2
- decimals: 2
- smoothing: true
- show:
- extrema: false
- fill: fade
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#5DADE2"
- value: 29.53
- - color: "#73B3D3"
- value: 29.92
- - color: "#8AC926"
- value: 30.11
- - color: "#FFCA3A"
- value: 30.36
- - color: "#FF595E"
- value: 30.74
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- .states--secondary {
- font-size: 75%;
- margin-top: 5px;
- margin-right: 0px !important;
- font-weight: 500;
- }
- state_map:
- - value: falling
- label: Falling
- - value: steady
- label: Steady
- - value: rising
- label: Rising
- - type: custom:mini-graph-card
- name: Visibility
- entities:
- - entity: sensor.home_sensors_visibility
- name: Visibility
- show_state: true
- show_legend: false
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 2
- decimals: 0
- smoothing: true
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#FF595E"
- value: 1
- - color: "#FFCA3A"
- value: 3
- - color: "#8AC926"
- value: 6
- - color: "#73B3D3"
- value: 9
- - color: "#468FAF"
- value: 12
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Precipitation Intensity
- entities:
- - entity: sensor.home_sensors_precipitation_intensity
- show_state: true
- show_legend: false
- state_adaptive_color: false
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- aggregate_func: max
- points_per_hour: 2
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#FFFFFF"
- value: 0
- - color: "#CAF0F8"
- value: 0.25
- - color: "#ADE8F4"
- value: 0.5
- - color: "#90E0EF"
- value: 1
- - color: "#48CAE4"
- value: 4
- - color: "#0077B6"
- value: 16
- - color: "#0077B6"
- value: 50
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- state_map:
- - value: no_rain
- label: None
- - value: very_light
- label: Very Light
- - value: light
- label: Light
- - value: moderate
- label: Moderate
- - value: heavy
- label: Heavy
- - value: very_heavy
- label: Very Heavy
- - value: extreme
- label: Extreme
- - type: custom:mini-graph-card
- name: Precipitation Rate
- entities:
- - entity: sensor.home_sensors_precipitation_rate
- show_state: true
- show_legend: false
- state_adaptive_color: false
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 4
- aggregate_func: max
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#CAF0F8"
- value: 0.01
- - color: "#ADE8F4"
- value: 0.1
- - color: "#90E0EF"
- value: 0.25
- - color: "#48CAE4"
- value: 0.5
- - color: "#0077B6"
- value: 1
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Precipitation Today
- entities:
- - entity: sensor.home_sensors_precipitation_today_checked
- name: Checked
- show_state: true
- state_adaptive_color: true
- - entity: sensor.home_sensors_precipitation_today
- name: Standard
- show_state: true
- state_adaptive_color: true
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 1
- decimals: 2
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#CAF0F8"
- value: 0.01
- - color: "#ADE8F4"
- value: 0.1
- - color: "#90E0EF"
- value: 0.5
- - color: "#48CAE4"
- value: 1
- - color: "#0077B6"
- value: 2
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: custom:mini-graph-card
- name: Precipitation Duration
- entities:
- - entity: sensor.home_sensors_precipitation_duration_today
- show_state: true
- state_adaptive_color: false
- font_size: 70
- line_width: 4
- animate: true
- points_per_hour: 2
- color_thresholds_transition: smooth
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- graph: bar
- color_thresholds:
- - color: "#CAF0F8"
- value: 0.5
- - color: "#ADE8F4"
- value: 1
- - color: "#90E0EF"
- value: 3
- - color: "#48CAE4"
- value: 6
- - color: "#0077B6"
- value: 12
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- grid_options:
- columns: 12
- rows: auto
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Strikes
- entities:
- - entity: sensor.home_sensors_lightning_strikes_last_3_hours
- show_state: true
- show_legend: false
- state_adaptive_color: false
- name: Last 3 Hours
- - entity: sensor.home_sensors_lightning_strikes_last_hour
- show_state: true
- show_legend: false
- state_adaptive_color: false
- name: Last Hour
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 4
- smoothing: false
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#FFFBCC"
- value: 1
- - color: "#FFF2A3"
- value: 5
- - color: "#FFE87B"
- value: 10
- - color: "#FFDE52"
- value: 20
- - color: "#FFD700"
- value: 20
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: custom:mini-graph-card
- name: Distance
- entities:
- - entity: sensor.home_sensors_distance_last_lightning_strike
- show_state: true
- show_legend: false
- state_adaptive_color: false
- name: Distance
- - color: rgba(128,128,128,0.3)
- entity: sensor.nightstate
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- font_size: 65
- line_width: 4
- animate: true
- points_per_hour: 4
- smoothing: false
- show:
- extrema: false
- fill: fade
- state: true
- average: false
- labels_secondary: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - color: "#FFFBCC"
- value: 1
- - color: "#FFF2A3"
- value: 5
- - color: "#FFE87B"
- value: 10
- - color: "#FFDE52"
- value: 20
- - color: "#FFD700"
- value: 20
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- grid_options:
- columns: 12
- rows: auto
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Wind
- icon: mdi:weather-windy
- entities:
- - entity: sensor.home_tempest_wind_speed
- name: Speed
- color: "#e5d0ff"
- show_state: true
- state_adaptive_color: true
- - entity: sensor.home_tempest_wind_gust
- name: Gust
- show_state: true
- color: "#bf8bff"
- aggregate_func: max
- state_adaptive_color: true
- - entity: sensor.nightstate
- color: rgba(128,128,128,0.3)
- name: Night
- show_legend: false
- show_line: false
- show_points: false
- y_axis: secondary
- hours_to_show: 24
- points_per_hour: 12
- animate: true
- font_size: 65
- line_width: 2
- height: 60
- decimals: 1
- show:
- icon: true
- state: true
- name_adaptive_color: true
- icon_adaptive_color: true
- extrema: false
- legend: false
- labels_secondary: false
- fill: fade
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 0px;
- }
- ha-card {
- padding-top: 5px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- grid_options:
- columns: 12
- rows: auto
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Humidex
- entities:
- - entity: sensor.thermal_comfort_humidex_perception
- name: Humidex
- show_state: false
- hours_to_show: 24
- points_per_hour: 1
- font_size: 40
- aggregate_func: max
- animate: true
- smoothing: false
- show:
- labels: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - value: 0
- color: "#4caf50"
- - value: 1
- color: "#cddc39"
- - value: 2
- color: "#ffeb3b"
- - value: 3
- color: "#ff9800"
- - value: 4
- color: "#f44336"
- - value: 5
- color: "#880e4f"
- state_map:
- - value: comfortable
- label: Comfortable
- - value: noticable_discomfort
- label: Noticeable Discomfort
- - value: evident_discomfort
- label: Evident Discomfort
- - value: great_discomfort
- label: Great Discomfort
- - value: dangerous_discomfort
- label: Dangerous
- - value: heat_stroke
- label: Heat Stroke
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 4px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: custom:mini-graph-card
- name: Dew Point
- entities:
- - entity: sensor.thermal_comfort_dew_point_perception
- name: Dew Point
- name_adaptive_color: true
- hours_to_show: 24
- points_per_hour: 1
- font_size: 40
- aggregate_func: max
- animate: true
- smoothing: false
- show:
- labels: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- color_thresholds:
- - value: 0
- color: "#b3e5fc"
- - value: 1
- color: "#81d4fa"
- - value: 2
- color: "#4caf50"
- - value: 3
- color: "#cddc39"
- - value: 4
- color: "#ffeb3b"
- - value: 5
- color: "#ff9800"
- - value: 6
- color: "#f44336"
- - value: 7
- color: "#880e4f"
- state_map:
- - value: dry
- label: Dry
- - value: very_comfortable
- label: Very Comfortable
- - value: comfortable
- label: Comfortable
- - value: ok_but_humid
- label: Ok But Humid
- - value: somewhat_uncomfortable
- label: Somewhat Uncomfortable
- - value: quite_uncomfortable
- label: Quite Uncomfortable
- - value: extremely_uncomfortable
- label: Extremely Uncomfortable
- - value: severely_high
- label: Severely High
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 4px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: horizontal-stack
- cards:
- - type: custom:mini-graph-card
- name: Summer Simmer
- entities:
- - entity: sensor.thermal_comfort_summer_simmer_perception
- name: Summer Simmer
- hours_to_show: 24
- points_per_hour: 1
- font_size: 40
- aggregate_func: max
- animate: true
- smoothing: false
- show:
- labels: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- fill: fade
- color_thresholds:
- - value: 0
- color: "#4a90e2"
- - value: 1
- color: "#50e3c2"
- - value: 2
- color: "#7ed321"
- - value: 3
- color: "#f5a623"
- - value: 4
- color: "#f8e71c"
- - value: 5
- color: "#f55e2e"
- - value: 6
- color: "#d0021b"
- - value: 7
- color: "#8b0000"
- - value: 8
- color: "#4b0082"
- state_map:
- - value: cool
- label: Cool
- - value: slightly_cool
- label: Slightly Cool
- - value: comfortable
- label: Comfortable
- - value: slightly_warm
- label: Slightly Warm
- - value: increasing_discomfort
- label: Increasing Discomfort
- - value: extremely_warm
- label: Extremely Warm
- - value: danger_of_heatstroke
- label: Heatstroke Risk
- - value: extreme_danger_of_heatstroke
- label: Extreme Risk
- - value: circulatory_collapse_imminent
- label: Collapse Imminent
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 4px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: custom:mini-graph-card
- name: Discomfort
- entities:
- - entity: sensor.thermal_comfort_thoms_discomfort_perception
- name: Discomfort
- show_state: false
- hours_to_show: 24
- points_per_hour: 1
- font_size: 40
- animate: true
- smoothing: false
- aggregate_func: max
- show:
- labels: false
- legend: false
- name_adaptive_color: true
- icon_adaptive_color: true
- fill: fade
- color_thresholds:
- - value: 0
- color: "#4caf50"
- - value: 1
- color: "#cddc39"
- - value: 2
- color: "#ffeb3b"
- - value: 3
- color: "#ff9800"
- - value: 4
- color: "#f44336"
- - value: 5
- color: "#880e4f"
- state_map:
- - value: no_discomfort
- label: No Discomfort
- - value: less_than_half
- label: Less than Half
- - value: more_than_half
- label: More than Half
- - value: most
- label: Most
- - value: everyone
- label: Everyone
- - value: dangerous
- label: Dangerous
- card_mod:
- style: |
- .name {
- font-size: 95%;
- }
- .header {
- padding-bottom: 0px;
- }
- .states {
- padding-bottom: 5px;
- }
- ha-card {
- padding-top: 4px !important;
- }
- .states.flex {
- font-weight: bold;
- }
- - type: conditional
- conditions:
- - condition: numeric_state
- entity: sensor.nws_alerts_alerts
- above: 0
- card:
- type: markdown
- content: >
- {% set alerts = state_attr('sensor.nws_alerts_alerts', 'Alerts') %}
- {% if alerts %}
- {% for alert in alerts %}
- ⚠️ **{{ alert.Event }}**
- 🕒 <strong>Issued:</strong> {{ as_local(strptime(alert.Sent,
- '%Y-%m-%dT%H:%M:%S%z')).strftime('%-m/%-d/%y at %-I:%M %p') }}
- ⏰ <strong>Expires:</strong> {{ as_local(strptime(alert.Expires,
- '%Y-%m-%dT%H:%M:%S%z')).strftime('%-m/%-d/%y at %-I:%M %p') }} {% if
- alert.Severity != 'Unknown' %} 📊 Severity: {{ alert.Severity }} {%
- endif %} {% if alert.Certainty != 'Unknown' %} 📡 Certainty: {{
- alert.Certainty }} {% endif %} <details> <summary>📝
- <strong>Description</strong></summary>
- {{ alert.Headline }}
- {% set desc = alert.Description.replace('\n', ' ') %}
- {% set parts = desc.split('* ') %}
- {% for part in parts if part %}
- <strong>{{ part.split('...')[0] | trim }}:</strong> {{ part.split('...', 1)[1] | trim }}
- {% endfor %}
- </details>
- <details>
- <summary>📢 <strong>Instructions</strong></summary>
- {% set instruction = alert.Instruction.replace('\n', ' ') %}
- {{ instruction | trim }}
- </details>
- {% endfor %}
- {% else %} ☀️ No active alerts. {% endif %}
- column_span: 3
- icon: ""
- cards: []
- badges: []
- header: {}
- top_margin: false
- dense_section_placement: true
- background:
- opacity: 0
- alignment: center
- size: contain
- repeat: no-repeat
- attachment: scroll
- layout: {}
Advertisement
Add Comment
Please, Sign In to add comment