Add conditionally visible card for Christmas lights in living room

This commit is contained in:
2024-12-14 18:43:29 -05:00
parent 708e254422
commit 22de6bfdc9

View File

@ -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