Add conditionally visible card for Christmas lights in living room
This commit is contained in:
@ -1502,6 +1502,71 @@ views:
|
|||||||
hold_action:
|
hold_action:
|
||||||
action: more-info
|
action: more-info
|
||||||
icon: hue:lightstrip
|
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
|
- type: custom:bubble-card
|
||||||
card_type: separator
|
card_type: separator
|
||||||
name: Media
|
name: Media
|
||||||
|
Reference in New Issue
Block a user