From 8c4fd26d39957e55b89eec0a55fd1531e1931965 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 13 Jul 2025 21:04:19 -0400 Subject: [PATCH] Fix visibility for NWS SPC status chips --- mobile_dashboard.yaml | 58 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/mobile_dashboard.yaml b/mobile_dashboard.yaml index 97778bc..89852a4 100644 --- a/mobile_dashboard.yaml +++ b/mobile_dashboard.yaml @@ -3798,13 +3798,13 @@ views: color: '{{ state_attr(entity,''wind_fill'') }}' entity: sensor.spc_outlook_day_1 label: SPC Wind Risk - tap_action: &ref_0 + tap_action: action: more-info - hold_action: &ref_1 + hold_action: action: none - double_tap_action: &ref_2 + double_tap_action: action: none - visibility: &ref_3 + visibility: - condition: and conditions: - condition: state @@ -3825,20 +3825,54 @@ views: color: '{{ state_attr(entity,''torn_fill'') }}' entity: sensor.spc_outlook_day_1 label: SPC Tornado Risk - tap_action: *ref_0 - hold_action: *ref_1 - double_tap_action: *ref_2 - visibility: *ref_3 + tap_action: + action: more-info + hold_action: + 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 content: '{{ state_attr(entity,''hail_probability'') }}' icon: mdi:weather-hail color: '{{ state_attr(entity,''hail_fill'') }}' entity: sensor.spc_outlook_day_1 label: SPC Hail Risk - tap_action: *ref_0 - hold_action: *ref_1 - double_tap_action: *ref_2 - visibility: *ref_3 + tap_action: + action: more-info + hold_action: + 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 content: |- {% if is_state(entity,'on') %}