mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Change cover icon in buttons
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
cover:
|
||||
template: default
|
||||
icon: >
|
||||
[[[
|
||||
return entity.state === "open" ? "mdi:window-shutter-open" : "mdi:window-shutter";
|
||||
]]]
|
||||
@@ -156,7 +156,7 @@ cards:
|
||||
name: "Kitchen"
|
||||
|
||||
- type: custom:button-card
|
||||
template: [small, with_state_background]
|
||||
template: [small, with_state_background, cover]
|
||||
entity: cover.living_room
|
||||
name: LR Cover
|
||||
tap_action:
|
||||
|
||||
@@ -151,7 +151,7 @@ cards:
|
||||
entity: climate.kitchen_radiator_mode
|
||||
name: "Kitchen"
|
||||
- type: custom:button-card
|
||||
template: [small, with_state_background]
|
||||
template: [small, with_state_background, cover]
|
||||
entity: cover.living_room
|
||||
name: LR Cover
|
||||
tap_action:
|
||||
|
||||
@@ -18,7 +18,7 @@ cards:
|
||||
columns: 4
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: [small, with_state_background]
|
||||
template: [small, with_state_background, cover]
|
||||
entity: cover.living_room
|
||||
name: LR Cover
|
||||
tap_action:
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
template: [default, cover]
|
||||
entity: cover.living_room
|
||||
name: Cover
|
||||
tap_action:
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: default
|
||||
template: [default, cover]
|
||||
entity: cover.living_room
|
||||
name: LR Cover
|
||||
tap_action:
|
||||
|
||||
Reference in New Issue
Block a user