-
Notifications
You must be signed in to change notification settings - Fork 28
/
button_card.yaml
62 lines (62 loc) · 1.67 KB
/
button_card.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
type: horizontal-stack
cards:
- type: 'custom:button-card'
entity: light.wled_lights
name: Preset 1
icon: 'mdi:pine-tree'
tap_action:
action: call-service
service: input_select.select_option
service_data:
entity_id: input_select.wled_presets
option: '[PL=01] Preset 1'
hold_action:
action: call-service
service: light.toggle
service_data:
entity_id: light.wled_lights
- type: 'custom:button-card'
entity: light.wled_lights
name: Preset 2
icon: 'mdi:pine-tree'
tap_action:
action: call-service
service: input_select.select_option
service_data:
entity_id: input_select.wled_presets
option: '[PL=02] Preset 2'
hold_action:
action: call-service
service: light.toggle
service_data:
entity_id: light.wled_lights
- type: 'custom:button-card'
entity: light.wled_lights
name: Preset 3
icon: 'mdi:pine-tree'
tap_action:
action: call-service
service: input_select.select_option
service_data:
entity_id: input_select.wled_presets
option: '[PL=03] Preset 3'
hold_action:
action: call-service
service: light.toggle
service_data:
entity_id: light.wled_lights
- type: 'custom:button-card'
entity: light.wled_lights
name: Preset 4
icon: 'mdi:pine-tree'
tap_action:
action: call-service
service: input_select.select_option
service_data:
entity_id: input_select.wled_presets
option: '[PL=04] Preset 4'
hold_action:
action: call-service
service: light.toggle
service_data:
entity_id: light.wled_lights