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: Weather
- - sub-content: null
- - square: false
- type: grid
- cards:
- - type: picture-elements
- image: /local/dashboard_photos/transparent/~transparent-1-1.png
- card_mod:
- style: |
- ha-card {
- background:
- /* top, transparent red, faked with gradient */
- linear-gradient(
- rgba(0, 0, 0, 0),
- rgba(0, 0, 0, 0)
- ),
- /* bottom, image */
- url("/local/dashboard_photos/temperature_humidity.jpg");
- background-size: cover;
- #background-size: contain;
- #background-size: auto;
- #background-size: auto auto;
- background-repeat: no-repeat;
- background-position: center left;
- }
- elements:
- - type: image
- tap_action: none
- double_tap_action: none
- hold_action: none
- image: /local/dashboard_photos/wind_turbine_2.jpg
- style:
- transform: none
- transform-origin: top right
- top: 2%
- right: 2%
- width: 35%
- card_mod:
- style: |
- :host {
- opacity: 0.8;
- border-radius: 8px;
- {% if is_state('binary_sensor.porch1_porch_zone_person_occupancy','on') %}
- border: 2px dashed red;
- {% elif is_state('binary_sensor.porch_mot_sticky','on') %}
- border: 2px solid red;
- {% else %}
- border: 2px solid grey;
- {% endif %}
- }
- - type: state-label
- style:
- transform: none
- transform-origin: top left
- left: 63%
- top: 1%
- font-size: 90%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.astroweather_backyard_10m_wind_speed')|float(0) %}
- {% if lev > 50 %}
- color: red;
- top: 1%;
- {% elif lev > 30 %}
- color: rgb(255,165,0);
- top: 1%;
- {% elif lev < 1 %}
- opacity: 0;
- top: 999%;
- {% else %}
- color: silver;
- top: 1%;
- {% endif %}
- }
- entity: sensor.astroweather_backyard_10m_wind_speed
- prefix: "Speed: "
- - type: state-label
- style:
- transform: none
- transform-origin: top left
- left: 63%
- font-size: 90%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.lincoln_wind_gust')|float(0) %}
- {% if lev <= states('sensor.astroweather_backyard_10m_wind_speed')|float(0) %}
- opacity: 0;
- top: 999%;
- {% elif lev > 65 %}
- color: red;
- top: 6%;
- {% elif lev > 40 %}
- color: rgb(255,165,0);
- top: 6%;
- {% elif lev < 1 %}
- opacity: 0;
- top: 999%;
- {% else %}
- color: silver;
- top: 6%;
- {% endif %}
- }
- entity: sensor.lincoln_wind_gust
- prefix: "Gust: "
- - type: conditional
- conditions:
- - condition: numeric_state
- entity: sensor.astroweather_backyard_10m_wind_speed
- above: 0
- title: wind direction
- elements:
- - type: state-label
- style:
- left: 80%
- top: 20%
- font-size: 170%
- font-weight: 700
- color: white
- entity: sensor.astroweather_backyard_10m_wind_direction
- - type: state-label
- style:
- transform: none
- left: 63%
- font-size: 90%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.lincoln_chance_of_precip')|float(0) %}
- {% if lev > 70 %}
- color: silver;
- top: 25%;
- {% elif lev > 90 %}
- color: orange;
- top: 25%;
- {% elif lev < 1 %}
- opacity: 0;
- top: 999%;
- {% else %}
- color: silver;
- top: 25%;
- {% endif %}
- }
- entity: sensor.lincoln_chance_of_precip
- prefix: "POP: "
- - type: state-label
- style:
- transform: none
- transform-origin: top left
- left: 63%
- top: 30%
- font-size: 90%
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.outdoor_front_pressure')|float(0) %}
- {% if lev > 1010 %}
- color: lightgreen;
- {% elif lev < 990 %}
- color: salmon;
- {% else %}
- color: silver;
- {% endif %}
- }
- entity: sensor.outdoor_front_pressure
- prefix: "Pressure: "
- - type: state-label
- style:
- transform: none
- transform-origin: top right
- right: 41%
- top: 1%
- font-size: 120%
- prefix: "Temp: "
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.outdoor_front_temp')|float(0) %}
- {% if lev < -7 %}
- color: lightblue;
- text-shadow: 1px 1px 4px blue;
- font-weight: 700;
- {% elif lev > 27 %}
- color: crimson;
- text-shadow: 1px 1px 4px salmon;
- font-weight: 700;
- {% else %}
- color: white;
- {% endif %}
- }
- entity: sensor.outdoor_temp
- - type: state-label
- prefix: "Humidity: "
- style:
- transform: none
- transform-origin: top right
- right: 41%
- top: 10%
- font-size: 120%
- color: white
- entity: sensor.outdoor_humidity
- - type: state-label
- style:
- transform: none
- right: 41%
- top: 19%
- font-size: 120%
- 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: 700;
- {% elif lev > 27 %}
- color: crimson;
- text-shadow: 1px 1px 4px salmon;
- font-weight: 700;
- top: 50%;
- {% else %}
- color: white;
- {% endif %}
- }
- entity: sensor.calc_feels_like
- prefix: "Feels: "
- - type: state-label
- style:
- transform: none
- right: 41%
- top: 28%
- font-size: 120%
- entity: sensor.openweathermap_uv_index
- card_mod:
- style: |
- :host {
- {% set lev = states('sensor.openweathermap_uv_index')|float(0) %}
- {% if lev > 8 %}
- color: red;
- text-shadow: 1px 1px 4px crimson;
- font-weight: 700;
- {% elif lev > 6 %}
- color: orange;
- text-shadow: 1px 1px 4px salmon;
- font-weight: 700;
- top: 50%;
- {% else %}
- color: silver;
- {% endif %}
- }
- - type: custom:mini-graph-card
- style:
- transform: none
- transform-origin: bottom right
- bottom: 32%
- right: 2%
- width: 100%
- scale: 1.3
- entities:
- - sensor.outdoor_temp
- graph: line
- hour24: false
- hours_to_show: 24
- points_per_hour: 6
- decimals: 1
- name: Raw Temp
- show:
- extrema: false
- icon: false
- name: false
- legend: false
- labels: false
- state: false
- color_thresholds:
- - value: -20
- color: "#08306b"
- - value: -16
- color: "#08519c"
- - value: -12
- color: "#2171b5"
- - value: -10
- color: "#4292c6"
- - value: -8
- color: "#6baed6"
- - value: -6
- color: "#9ecae1"
- - value: -4
- color: "#c6dbef"
- - value: -2
- color: "#deebf7"
- - value: 0
- color: "#ffffff"
- - value: 2
- color: "#ffffff"
- - value: 4
- color: "#fee0d2"
- - value: 6
- color: "#fcbba1"
- - value: 9
- color: "#fc9272"
- - value: 12
- color: "#fb6a4a"
- - value: 15
- color: "#ef3b2c"
- - value: 18
- color: "#cb181d"
- - value: 22
- color: "#a50f15"
- - value: 26
- color: "#8a0113"
- - value: 30
- color: "#bf021b"
- card_mod:
- style: |
- ha-card {
- font-size: 90% !important;
- padding-top: 30px !important;
- background: rgba(0,0,0,0) !important;
- }
- :host {
- width: 40% !important;
- border: 1px solid grey;
- border-radius: 8px;
- }
- - type: state-label
- style:
- transform: none
- left: 45%
- bottom: 50%
- font-size: 90%
- color: white
- entity: sensor.dummy_blank_sensor
- prefix: Temp (24h)
- - type: state-label
- style:
- transform: none
- transform-origin: bottom left
- left: 45%
- bottom: 45%
- font-size: 80%
- color: white
- entity: sensor.min_outdoor_temp_24
- prefix: "Min: "
- - type: state-label
- style:
- transform: none
- left: 45%
- bottom: 41%
- font-size: 80%
- color: white
- entity: sensor.min_outdoor_temp_24_tm
- - type: state-label
- style:
- transform: none
- transform-origin: bottom right
- right: 2%
- bottom: 45%
- font-size: 80%
- color: white
- entity: sensor.max_outdoor_temp_24
- prefix: "Max: "
- - type: state-label
- style:
- transform: none
- right: 2%
- bottom: 41%
- font-size: 80%
- color: white
- entity: sensor.max_outdoor_temp_24_tm
- - type: custom:mini-graph-card
- style:
- transform: none
- transform-origin: bottom right
- bottom: 2%
- right: 2%
- width: 100%
- scale: 1.3
- entities:
- - sensor.outdoor_humidity
- graph: line
- hour24: false
- hours_to_show: 24
- points_per_hour: 6
- decimals: 1
- name: Humidity
- show:
- extrema: false
- icon: false
- name: false
- legend: false
- labels: false
- state: false
- color_thresholds:
- - value: 0
- color: rgb(240,0,0)
- - value: 12
- color: rgb(200,66,13)
- - value: 22
- color: rgb(194,134,62)
- - value: 32
- color: rgb(105,173,56)
- - value: 42
- color: rgb(117,203,190)
- - value: 52
- color: rgb(56,174,173)
- - value: 62
- color: rgb(45,157,173)
- - value: 72
- color: rgb(35,147,167)
- - value: 82
- color: rgb(15,132,253)
- - value: 92
- color: rgb(0,70,214)
- card_mod:
- style: |
- ha-card {
- font-size: 90% !important;
- padding-top: 30px !important;
- background: rgba(0,0,0,0) !important;
- }
- :host {
- width: 40% !important;
- border: 1px solid grey;
- border-radius: 8px;
- }
- - type: state-label
- style:
- transform: none
- left: 45%
- bottom: 20%
- font-size: 90%
- color: white
- entity: sensor.dummy_blank_sensor
- prefix: Humidity (24h)
- - type: state-label
- style:
- transform: none
- left: 45%
- top: 77%
- font-size: 80%
- color: white
- entity: sensor.min_outdoor_humidity_24
- prefix: "Min: "
- - type: state-label
- style:
- transform: none
- left: 45%
- top: 81%
- font-size: 80%
- color: white
- entity: sensor.min_outdoor_humidity_24_tm
- - type: state-label
- style:
- transform: none
- transform-origin: top right
- right: 2%
- top: 77%
- font-size: 80%
- color: white
- entity: sensor.max_outdoor_humidity_24
- prefix: "Max: "
- - type: state-label
- style:
- transform: none
- right: 2%
- top: 81%
- font-size: 80%
- color: white
- entity: sensor.max_outdoor_humidity_24_tm
- columns: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement