Gauge card pro for gas price info
This commit is contained in:
@@ -4346,14 +4346,85 @@ views:
|
||||
cards:
|
||||
- type: heading
|
||||
heading: Defiance Gas Statistics
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: sensor.local_minimum_gas_price
|
||||
name: Minimum
|
||||
- entity: sensor.local_average_gas_price
|
||||
name: Average
|
||||
- entity: sensor.local_maximum_gas_price
|
||||
name: Maximum
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:gauge-card-pro
|
||||
entity: sensor.local_minimum_gas_price
|
||||
segments:
|
||||
- pos: 2
|
||||
color: var(--success-color)
|
||||
- pos: 3
|
||||
color: var(--warning-color)
|
||||
- pos: 4
|
||||
color: var(--error-color)
|
||||
needle: true
|
||||
gradient: true
|
||||
titles:
|
||||
primary: Minimum
|
||||
gradient_resolution: auto
|
||||
min: 2
|
||||
max: 4
|
||||
round: small
|
||||
value_texts:
|
||||
primary: |-
|
||||
{% if states(entity) in ['unavailable','unknown'] %}
|
||||
?
|
||||
{% else %}
|
||||
{{ states(entity) }}
|
||||
{% endif %}
|
||||
primary_unit: '{{ '''' }}'
|
||||
- type: custom:gauge-card-pro
|
||||
entity: sensor.local_average_gas_price
|
||||
segments:
|
||||
- pos: 2
|
||||
color: var(--success-color)
|
||||
- pos: 3
|
||||
color: var(--warning-color)
|
||||
- pos: 4
|
||||
color: var(--error-color)
|
||||
needle: true
|
||||
gradient: true
|
||||
titles:
|
||||
primary: Average
|
||||
gradient_resolution: auto
|
||||
min: 2
|
||||
max: 4
|
||||
round: small
|
||||
value_texts:
|
||||
primary: |-
|
||||
{% if states(entity) in ['unavailable','unknown'] %}
|
||||
?
|
||||
{% else %}
|
||||
{{ states(entity) }}
|
||||
{% endif %}
|
||||
primary_unit: '{{ '''' }}'
|
||||
- type: custom:gauge-card-pro
|
||||
entity: sensor.local_maximum_gas_price
|
||||
segments:
|
||||
- pos: 2
|
||||
color: var(--success-color)
|
||||
- pos: 3
|
||||
color: var(--warning-color)
|
||||
- pos: 4
|
||||
color: var(--error-color)
|
||||
needle: true
|
||||
gradient: true
|
||||
titles:
|
||||
primary: Maximum
|
||||
gradient_resolution: auto
|
||||
min: 2
|
||||
max: 4
|
||||
round: small
|
||||
value_texts:
|
||||
primary: |-
|
||||
{% if states(entity) in ['unavailable','unknown'] %}
|
||||
?
|
||||
{% else %}
|
||||
{{ states(entity) }}
|
||||
{% endif %}
|
||||
primary_font_size_reduction: 0
|
||||
primary_unit_before_value: true
|
||||
primary_unit: '{{ '''' }}'
|
||||
- type: custom:auto-entities
|
||||
card:
|
||||
type: entities
|
||||
|
||||
@@ -3659,14 +3659,88 @@ views:
|
||||
button_type: name
|
||||
name: Gas Prices
|
||||
icon: mdi:gas-station
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: sensor.local_minimum_gas_price
|
||||
name: Minimum
|
||||
- entity: sensor.local_average_gas_price
|
||||
name: Average
|
||||
- entity: sensor.local_maximum_gas_price
|
||||
name: Maximum
|
||||
sub_button:
|
||||
main: []
|
||||
bottom: []
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:gauge-card-pro
|
||||
entity: sensor.local_minimum_gas_price
|
||||
segments:
|
||||
- pos: 2
|
||||
color: var(--success-color)
|
||||
- pos: 3
|
||||
color: var(--warning-color)
|
||||
- pos: 4
|
||||
color: var(--error-color)
|
||||
needle: true
|
||||
gradient: true
|
||||
titles:
|
||||
primary: Minimum
|
||||
gradient_resolution: auto
|
||||
min: 2
|
||||
max: 4
|
||||
round: small
|
||||
value_texts:
|
||||
primary: |-
|
||||
{% if states(entity) in ['unavailable','unknown'] %}
|
||||
?
|
||||
{% else %}
|
||||
{{ states(entity) }}
|
||||
{% endif %}
|
||||
primary_unit: '{{ '''' }}'
|
||||
- type: custom:gauge-card-pro
|
||||
entity: sensor.local_average_gas_price
|
||||
segments:
|
||||
- pos: 2
|
||||
color: var(--success-color)
|
||||
- pos: 3
|
||||
color: var(--warning-color)
|
||||
- pos: 4
|
||||
color: var(--error-color)
|
||||
needle: true
|
||||
gradient: true
|
||||
titles:
|
||||
primary: Average
|
||||
gradient_resolution: auto
|
||||
min: 2
|
||||
max: 4
|
||||
round: small
|
||||
value_texts:
|
||||
primary: |-
|
||||
{% if states(entity) in ['unavailable','unknown'] %}
|
||||
?
|
||||
{% else %}
|
||||
{{ states(entity) }}
|
||||
{% endif %}
|
||||
primary_unit: '{{ '''' }}'
|
||||
- type: custom:gauge-card-pro
|
||||
entity: sensor.local_maximum_gas_price
|
||||
segments:
|
||||
- pos: 2
|
||||
color: var(--success-color)
|
||||
- pos: 3
|
||||
color: var(--warning-color)
|
||||
- pos: 4
|
||||
color: var(--error-color)
|
||||
needle: true
|
||||
gradient: true
|
||||
titles:
|
||||
primary: Maximum
|
||||
gradient_resolution: auto
|
||||
min: 2
|
||||
max: 4
|
||||
round: small
|
||||
value_texts:
|
||||
primary: |-
|
||||
{% if states(entity) in ['unavailable','unknown'] %}
|
||||
?
|
||||
{% else %}
|
||||
{{ states(entity) }}
|
||||
{% endif %}
|
||||
primary_font_size_reduction: 0
|
||||
primary_unit_before_value: true
|
||||
primary_unit: '{{ '''' }}'
|
||||
- type: custom:auto-entities
|
||||
card:
|
||||
type: entities
|
||||
|
||||
Reference in New Issue
Block a user