-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathbutton.yaml
More file actions
38 lines (37 loc) · 779 Bytes
/
Copy pathbutton.yaml
File metadata and controls
38 lines (37 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# ______ _ _
# | ___ \ | | | |
# | |_/ /_ _| |_| |_ ___ _ __
# | ___ \ | | | __| __/ _ \| '_ \
# | |_/ / |_| | |_| || (_) | | | |
# \____/ \____|\__|\__\___/|_| |_|
# Light to control
entity: light.example
# Icon to display
icon: "mdi:lamp"
# Button actions
tap_action:
action: toggle
haptic: light
hold_action:
action: more-info
haptic: medium
styles:
card:
# Feel free to change the size here
- width: min(20vw, 60px)
- height: min(20vw, 60px)
icon:
- color: var(--primary-text-color)
state:
- value: "on"
styles:
icon:
- color: var(--paper-item-icon-active-color)
card:
- box-shadow: var(--soft-ui-pressed)
show_icon: true
show_name: false
card_mod:
class: soft-ui
type: "custom:button-card"