-
Notifications
You must be signed in to change notification settings - Fork 3
/
ui.yaml
63 lines (63 loc) · 1.28 KB
/
ui.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
63
# lovelace_gen
type: custom:paper-buttons-row
base_config:
name: false
ripple: fill
styles:
button:
width: 20%
margin: 0
padding: 1px
icon:
border-radius: 5px
height: 60px;
width: 100%;
object-fit: cover;
tap_action:
action: call-service
service: script.light_hue_scene
service_data:
onlyonlights: true
skipgroups: true
target:
area_id: {{ area }}
double_tap_action:
action: call-service
service: script.light_hue_scene
service_data:
onlyonlights: false
skipgroups: true
target:
area_id: {{ area }}
buttons:
{% for s in scenes %}
{% if s == "Random" %}
- entity: script.light_hue_scene
image: /local/hue/dice.jpg
tooltip: Random
tap_action:
service_data:
scene: Random
hue_min: 0
hue_max: 360
sat_min: 99
sat_max: 101
double_tap_action:
service_data:
scene: Random
hue_min: 0
hue_max: 360
sat_min: 99
sat_max: 101
{% else %}
- entity: script.light_hue_scene
image: /local/hue/{{s}}.jpg
tooltip: {{ s }}
tap_action:
service_data:
scene: {{ s }}
double_tap_action:
service_data:
scene: {{ s }}
{% endif %}
{% endfor %}