From 22de6bfdc91bd6da71cbd33bf80ccab59a45b5bb Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 14 Dec 2024 18:43:29 -0500 Subject: [PATCH] Add conditionally visible card for Christmas lights in living room --- mobile_dashboard.yaml | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/mobile_dashboard.yaml b/mobile_dashboard.yaml index 4d2ea55..eafa5d8 100644 --- a/mobile_dashboard.yaml +++ b/mobile_dashboard.yaml @@ -1502,6 +1502,71 @@ views: hold_action: action: more-info icon: hue:lightstrip + - type: horizontal-stack + cards: + - type: custom:bubble-card + card_type: button + button_type: switch + entity: light.christmas_tree + name: Tree + show_state: true + show_attribute: false + tap_action: + action: toggle + double_tap_action: + action: none + hold_action: + action: more-info + icon: mdi:pine-tree + button_action: + tap_action: + action: toggle + double_tap_action: + action: none + hold_action: + action: more-info + visibility: + - condition: or + conditions: + - condition: state + entity: light.christmas_tree + state_not: unavailable + - type: custom:bubble-card + card_type: button + button_type: switch + entity: light.christmas_lights_front_window + name: Window + show_state: true + show_attribute: false + tap_action: + action: toggle + double_tap_action: + action: none + hold_action: + action: more-info + icon: mdi:string-lights + button_action: + tap_action: + action: toggle + double_tap_action: + action: none + hold_action: + action: more-info + visibility: + - condition: or + conditions: + - condition: state + entity: light.christmas_lights_front_window + state_not: unavailable + visibility: + - condition: or + conditions: + - condition: state + entity: light.christmas_tree + state_not: unavailable + - condition: state + entity: light.christmas_lights_front_window + state_not: unavailable - type: custom:bubble-card card_type: separator name: Media