Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- cards:
- - type: custom:decluttering-card
- template: normal_title
- variables:
- - content: Current Conditions
- - sub-content: null
- - type: vertical-stack
- cards:
- - square: false
- type: grid
- cards:
- - type: picture-elements
- image: /local/dashboard_photos/temperature_humidity.jpg
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 1%
- font-size: 200%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.outdoor_temp_local')|float(0) %}
- {% if lev < -7 %}
- color: lightblue;
- text-shadow: 1px 1px 4px blue;
- font-weight: 600;
- font-size: 120%;
- {% elif lev > 27 %}
- color: crimson;
- text-shadow: 1px 1px 4px salmon;
- font-weight: 600;
- font-size: 120%;
- {% else %}
- color: white;
- {% endif %}
- }
- entity: sensor.outdoor_temp_local
- - type: conditional
- conditions:
- - entity: sensor.outdoor_humidity
- state_not: unavailable
- title: humidity
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 17%
- font-size: 165%
- color: white
- entity: sensor.outdoor_humidity
- - type: state-label
- style:
- transform: none
- right: 2%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.calc_feels_like')|float(0) %}
- {% if lev < -7 %}
- color: lightblue;
- text-shadow: 1px 1px 4px blue;
- font-weight: 600;
- font-size: 150%;
- top: 50%;
- {% elif lev > 27 %}
- color: crimson;
- text-shadow: 1px 1px 4px salmon;
- font-weight: 600;
- font-size: 150%;
- top: 50%;
- {% else %}
- color: white;
- bottom: 9%;
- {% endif %}
- }
- entity: sensor.calc_feels_like
- prefix: "Feels: "
- - type: conditional
- conditions:
- - entity: sensor.openweathermap_uv_index
- state_not: unavailable
- title: uv index
- elements:
- - type: state-label
- style:
- transform: none
- right: 2%
- bottom: 0%
- font-size: 100%
- color: silver
- entity: sensor.openweathermap_uv_index
- - type: picture-elements
- image: /local/dashboard_photos/wind_turbine_2.jpg
- elements:
- - type: conditional
- conditions:
- - condition: numeric_state
- entity: sensor.outdoor_front_pressure
- above: 4
- title: pressure
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- bottom: 0%
- font-size: 100%
- card_mod:
- style: |
- :host {
- color:
- {% set lev = states('sensor.outdoor_front_pressure')|float(0) %}
- {% if lev > 70 %}
- red
- {% elif lev > 40 %}
- orange
- {% else %}
- lightgreen
- {% endif %};
- }
- entity: sensor.outdoor_front_pressure
- prefix: "Pressure: "
- - type: state-label
- style:
- transform: none
- left: 1%
- font-size: 100%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.lincoln_wind_gust')|float(0) %}
- {% if lev > 65 %}
- color: red;
- top: 10%;
- {% elif lev > 40 %}
- color: orange;
- top: 10%;
- {% elif lev < 1 %}
- opacity: 0;
- top: 999%;
- {% else %}
- color: silver;
- top: 10%;
- {% endif %}
- }
- entity: sensor.lincoln_wind_gust
- prefix: "Gust: "
- - type: conditional
- conditions:
- - condition: numeric_state
- entity: sensor.lincoln_wind_speed
- above: 4
- title: wind speed
- elements:
- - type: state-label
- style:
- left: 50%
- top: 50%
- font-size: 200%
- font-weight: 700
- color: white
- entity: sensor.lincoln_wind_direction
- - type: state-label
- style:
- transform: none
- left: 1%
- font-size: 100%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.lincoln_wind_speed')|float(0) %}
- {% if lev > 50 %}
- color: red;
- top: 1%;
- {% elif lev > 30 %}
- color: orange;
- top: 1%;
- {% elif lev < 1 %}
- opacity: 0;
- top: 999%;
- {% else %}
- color: silver;
- top: 1%;
- {% endif %}
- }
- entity: sensor.lincoln_wind_speed
- prefix: "Speed: "
- - type: state-label
- style:
- transform: none
- left: 1%
- font-size: 100%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.lincoln_chance_of_precip')|float(0) %}
- {% if lev > 70 %}
- color: silver;
- bottom: 10%;
- {% elif lev > 90 %}
- color: orange;
- bottom: 10%;
- {% elif lev < 1 %}
- opacity: 0;
- top: 999%;
- {% else %}
- color: silver;
- bottom: 10%;
- {% endif %}
- }
- entity: sensor.lincoln_chance_of_precip
- prefix: "POP: "
- columns: 2
- - type: picture-elements
- image: /local/dashboard_photos/low_horizon_blue_1.jpg
- elements:
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.next_dawn
- state_not: x
- title: next dawn
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- top: 0%
- font-size: 90%
- entity: sensor.next_dawn
- prefix: "Dawn: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.next_sunrise
- state_not: x
- title: sunrise
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- top: 9%
- font-size: 90%
- entity: sensor.next_sunrise
- prefix: "Sunrise: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.next_solar_noon_time
- state_not: x
- title: sunset
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- top: 17%
- font-size: 90%
- entity: sensor.next_solar_noon_time
- prefix: "Noon: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.next_sunset
- state_not: x
- title: sunset
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- top: 26%
- font-size: 90%
- entity: sensor.next_sunset
- prefix: "Sunset: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.next_dusk
- state_not: x
- title: dusk
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- top: 35%
- font-size: 90%
- entity: sensor.next_dusk
- prefix: "Dusk: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.sun_elevation
- state_not: x
- title: sun elevation
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- top: 44%
- font-size: 90%
- font-weight: 700
- entity: sensor.sun_elevation
- prefix: "Elevation: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.sun_azimuth
- state_not: x
- title: sun azimuth
- elements:
- - type: state-label
- style:
- transform: none
- left: 1%
- top: 52%
- font-size: 90%
- font-weight: 700
- entity: sensor.sun_azimuth
- prefix: "Azimuth: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.next_moonrise
- state_not: x
- title: moonrise
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 0%
- font-size: 90%
- entity: sensor.next_moonrise
- prefix: "Moonrise: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.next_moonset
- state_not: x
- title: moonset
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 9%
- font-size: 90%
- entity: sensor.next_moonset
- prefix: "Moonset: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.astroweather_backyard_moon_phase
- state_not: x
- title: moon illumination
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 17%
- font-size: 90%
- color: white
- background: rgba(255,255,255,.0)
- entity: sensor.astroweather_backyard_moon_phase
- prefix: "Illumination: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.moon
- state_not: x
- title: moon phase
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 26%
- font-size: 90%
- entity: sensor.moon
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.astroweather_backyard_moon_altitude
- state_not: x
- title: moon elevation
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 35%
- font-size: 90%
- font-weight: 700
- entity: sensor.astroweather_backyard_moon_altitude
- prefix: "Elevation: "
- - type: conditional
- conditions:
- - condition: state
- entity: sensor.astroweather_backyard_moon_azimuth
- state_not: x
- title: moon azimuth
- elements:
- - type: state-label
- style:
- transform: none
- right: 1%
- top: 44%
- font-size: 90%
- font-weight: 700
- entity: sensor.astroweather_backyard_moon_azimuth
- prefix: "Azimuth: "
- - type: image
- tap_action: none
- double_tap_action: none
- hold_action: none
- image: /local/dashboard_photos/sun-icon.png
- style:
- width: 9%
- min-width: 35px
- card_mod:
- style: |
- :host {
- bottom: {{ (((states('sensor.sun_elevation')|float(0)))+4)|round(1) }}%;
- left: {{ ((states('sensor.astroweather_backyard_sun_azimuth')|float(0) / 360)*100)|round(1) }}%;
- opacity:
- {% set ele = states('sensor.sun_elevation')|float(0) %}
- {% set ele_start = -5 %}
- {% set ele_end = 4 %}
- {% set ele_range = ele_end - ele_start %}
- {% set min_opacity = 0.07 %}
- {% set adj_ele = ele - ele_start %}
- {% set calc_opacity = adj_ele / ele_range %}
- {% if ele < ele_start %}
- {{ min_opacity }};
- {% elif ele > ele_end %}
- {{ "1.0" }}
- {% else %}
- {% if calc_opacity < min_opacity %}
- {{ min_opacity }}
- {% else %}
- {{ calc_opacity }}
- {% endif %}
- {% endif %}
- }
- - type: image
- tap_action: none
- double_tap_action: none
- hold_action: none
- image: /local/dashboard_photos/moon-icon.png
- style:
- width: 5%
- min-width: 22px
- card_mod:
- style: |
- :host {
- bottom: {{ (((states('sensor.astroweather_backyard_moon_altitude')|float(0)))+4)|round(1) }}%;
- left: {{ ((states('sensor.astroweather_backyard_moon_azimuth')|float(0) / 360)*100)|round(1) }}%;
- opacity:
- {% set ele = states('sensor.astroweather_backyard_moon_altitude')|float(0) %}
- {% set ele_start = -6 %}
- {% set ele_end = 2 %}
- {% set ele_range = ele_end - ele_start %}
- {% set min_opacity = 0.01 %}
- {% set adj_ele = ele - ele_start %}
- {% set calc_opacity = adj_ele / ele_range %}
- {% if ele < ele_start %}
- {{ min_opacity }};
- {% elif ele > ele_end %}
- {{ "1.0" }}
- {% else %}
- {% if calc_opacity < min_opacity %}
- {{ min_opacity }}
- {% else %}
- {{ calc_opacity }}
- {% endif %}
- {% endif %}
- }
- - type: state-label
- style:
- transform: none
- left: 0%
- bottom: 0%
- font-size: 100%
- font-weight: 600
- color: grey
- entity: sensor.dummy_blank_sensor
- prefix: East
- tap_action: none
- double_tap_action: none
- hold_action: none
- - type: state-label
- style:
- transform: none
- right: 0%
- bottom: 0%
- font-size: 100%
- font-weight: 600
- color: grey
- entity: sensor.dummy_blank_sensor
- tap_action: none
- double_tap_action: none
- hold_action: none
- prefix: West
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement