Fix visibility for NWS SPC status chips
This commit is contained in:
@ -3798,13 +3798,13 @@ views:
|
|||||||
color: '{{ state_attr(entity,''wind_fill'') }}'
|
color: '{{ state_attr(entity,''wind_fill'') }}'
|
||||||
entity: sensor.spc_outlook_day_1
|
entity: sensor.spc_outlook_day_1
|
||||||
label: SPC Wind Risk
|
label: SPC Wind Risk
|
||||||
tap_action: &ref_0
|
tap_action:
|
||||||
action: more-info
|
action: more-info
|
||||||
hold_action: &ref_1
|
hold_action:
|
||||||
action: none
|
action: none
|
||||||
double_tap_action: &ref_2
|
double_tap_action:
|
||||||
action: none
|
action: none
|
||||||
visibility: &ref_3
|
visibility:
|
||||||
- condition: and
|
- condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -3825,20 +3825,54 @@ views:
|
|||||||
color: '{{ state_attr(entity,''torn_fill'') }}'
|
color: '{{ state_attr(entity,''torn_fill'') }}'
|
||||||
entity: sensor.spc_outlook_day_1
|
entity: sensor.spc_outlook_day_1
|
||||||
label: SPC Tornado Risk
|
label: SPC Tornado Risk
|
||||||
tap_action: *ref_0
|
tap_action:
|
||||||
hold_action: *ref_1
|
action: more-info
|
||||||
double_tap_action: *ref_2
|
hold_action:
|
||||||
visibility: *ref_3
|
action: none
|
||||||
|
double_tap_action:
|
||||||
|
action: none
|
||||||
|
visibility:
|
||||||
|
- condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: unavailable
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: unknown
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: No Risk
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: General Thunderstorms Risk
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: '{{ state_attr(entity,''hail_probability'') }}'
|
content: '{{ state_attr(entity,''hail_probability'') }}'
|
||||||
icon: mdi:weather-hail
|
icon: mdi:weather-hail
|
||||||
color: '{{ state_attr(entity,''hail_fill'') }}'
|
color: '{{ state_attr(entity,''hail_fill'') }}'
|
||||||
entity: sensor.spc_outlook_day_1
|
entity: sensor.spc_outlook_day_1
|
||||||
label: SPC Hail Risk
|
label: SPC Hail Risk
|
||||||
tap_action: *ref_0
|
tap_action:
|
||||||
hold_action: *ref_1
|
action: more-info
|
||||||
double_tap_action: *ref_2
|
hold_action:
|
||||||
visibility: *ref_3
|
action: none
|
||||||
|
double_tap_action:
|
||||||
|
action: none
|
||||||
|
visibility:
|
||||||
|
- condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: unavailable
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: unknown
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: No Risk
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: General Thunderstorms Risk
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: |-
|
||||||
{% if is_state(entity,'on') %}
|
{% if is_state(entity,'on') %}
|
||||||
|
Reference in New Issue
Block a user