forked from basnijholt/home-assistant-streamdeck-yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
302 lines (287 loc) · 9.46 KB
/
configuration.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
brightness: 100
state_entity_id: input_boolean.streamdeck
pages:
- name: Home
buttons:
- entity_id: light.living_room_lights
service: light.toggle
text: |
Living room
lights
special_type: light-control
special_type_data:
colors:
- "#FF0000" # red
- "#00FF00" # green
- "#0000FF" # blue
- "#FFFF00" # yellow
- "#FFC0CB" # pink
- "#800080" # purple
- "#FFA500" # orange
- "#00FFFF" # cyan
- "#FFD700" # gold
- "#008000" # dark green
- entity_id: light.bedroom_lights_z2m
service: light.toggle
text: |
Bedroom
lights
- entity_id: light.guest_room
service: light.toggle
text: |
Guest room
light
- entity_id: light.outside_lights_z2m
service: light.toggle
text: |
Outside
lights
- entity_id: light.dinner_area
service: light.toggle
text: |
Dinner
lights
# - entity_id: switch.space_heater
# service: switch.toggle
# text: '{{ states("switch.space_heater") }}'
# icon: "space-heater.png"
# text_size: 16
# text_color: black
# icon_gray_when_off: true
- entity_id: media_player.kef_ls50
service: media_player.volume_set
service_data:
volume_level: '{{ (state_attr("media_player.kef_ls50", "volume_level") - 0.05) | max(0) }}'
entity_id: media_player.kef_ls50
text: '{{ (100 * state_attr("media_player.kef_ls50", "volume_level")) | int }}%'
text_size: 16
icon_mdi: "volume-minus"
- entity_id: media_player.kef_ls50
service: media_player.volume_set
service_data:
volume_level: '{{ (state_attr("media_player.kef_ls50", "volume_level") + 0.05) | min(1) }}'
entity_id: media_player.kef_ls50
text: '{{ (100 * state_attr("media_player.kef_ls50", "volume_level")) | int }}%'
text_size: 16
icon_mdi: volume-plus
- service: script.reset_adaptive_lighting
text: |
Reset
adaptive
lighting
- icon: night_sky.png
service: script.turn_off_everything
text: ALL OFF
- entity_id: input_select.sleep_mode
service: input_select.select_previous
text: Sleep {{ states("input_select.sleep_mode") }}
icon_mdi: power-sleep
- icon: fireplace.png
service: script.start_fireplace_netflix
- service_data:
id: playlist:37i9dQZF1DXaRycgyh6kXP
source: KEF LS50
icon: spotify.png
service: script.start_spotify
- icon: hogwarts.png
service: script.start_hogwarts_legacy
- special_type: previous-page
- special_type: next-page
- name: Media
buttons:
- icon: netflix.png
service: script.start_spotify
- icon: xbox.png
service: script.start_xbox
- special_type: empty
- special_type: empty
- icon_mdi: restart
service: homeassistant.restart
text: |
Restart
HA
- icon_mdi: lightbulb
service: script.cozy_lights_living_room
text: |
Cozy
lights
- icon_mdi: lightbulb
service: script.white_lights_living_room
text: |
White
lights
- icon_mdi: lightbulb
entity_id: light.living_room_lights
service: light.turn_on
service_data:
entity_id: light.living_room_lights
brightness_pct: 1
text: |
1%
brightness
- icon_mdi: lightbulb
entity_id: light.living_room_lights
service: light.turn_on
service_data:
brightness_pct: 50
entity_id: light.living_room_lights
text: |
50%
brightness
- icon_mdi: lightbulb
entity_id: light.living_room_lights
service: light.turn_on
service_data:
brightness_pct: 100
entity_id: light.living_room_lights
text: |
100%
brightness
- icon_mdi: movie
service: automation.trigger
service_data:
entity_id: automation.apple_watch_movie_time
text: |
Movie
time
- special_type: go-to-page
special_type_data: Home
- special_type: go-to-page
special_type_data: 0
- special_type: previous-page
- special_type: next-page
- name: Spotify
buttons:
# Electronica Romantica
- service_data:
id: playlist:37i9dQZF1DXaRycgyh6kXP
source: KEF LS50
icon: "spotify:playlist/37i9dQZF1DXaRycgyh6kXP"
service: script.start_spotify
# Gui Borato's track IDs
- service_data:
id: playlist:37i9dQZF1DX4fgrmoIzHtd
source: KEF LS50
icon: "spotify:playlist/37i9dQZF1DX4fgrmoIzHtd"
service: script.start_spotify
# Hijos del Sol
- service_data:
id: album:6gnYcXVaffdG0vwVM34cr8
source: KEF LS50
icon: "spotify:album/6gnYcXVaffdG0vwVM34cr8"
service: script.start_spotify
# Lofi
- service_data:
id: playlist:0vvXsWCC9xrXsKd4FyS8kM
source: KEF LS50
icon: "spotify:playlist/0vvXsWCC9xrXsKd4FyS8kM"
service: script.start_spotify
# Whiskey Bar playlist
- service_data:
id: playlist:7fAwscs01z0Rji0HIIB19l
source: KEF LS50
icon: "spotify:playlist/7fAwscs01z0Rji0HIIB19l"
service: script.start_spotify
# Deep House Relax
- service_data:
id: playlist:37i9dQZF1DX2TRYkJECvfC
source: KEF LS50
icon: "spotify:playlist/37i9dQZF1DX2TRYkJECvfC"
service: script.start_spotify
# Discover Weekly
- service_data:
id: playlist:37i9dQZEVXcJ4MCS0sT9Qc
source: KEF LS50
icon: "spotify:playlist/37i9dQZEVXcJ4MCS0sT9Qc"
service: script.start_spotify
# Bas Nijholt's playlist
- service_data:
id: playlist:6rPTm9dYftKcFAfwyRqmDZ
source: KEF LS50
icon: "spotify:playlist/6rPTm9dYftKcFAfwyRqmDZ"
service: script.start_spotify
# Techno Yoga
- service_data:
id: playlist:78MrlTajauLF07fztVmEv3
source: KEF LS50
icon: "spotify:playlist/78MrlTajauLF07fztVmEv3"
service: script.start_spotify
# Nicolas Jaar Essential Mix
- service_data:
id: playlist:5DKwqbNTYB384iW7TGQGAh
source: KEF LS50
icon: "spotify:playlist/5DKwqbNTYB384iW7TGQGAh"
service: script.start_spotify
# # Coding mode
# - service_data:
# id: playlist:37i9dQZF1DX5trt9i14X7j
# source: KEF LS50
# icon: "spotify:playlist/37i9dQZF1DX5trt9i14X7j"
# service: script.start_spotify
# Next song
- service: media_player.media_next_track
entity_id: media_player.spotify
icon_mdi: "skip-next"
text: Next
# Volume down
- entity_id: media_player.kef_ls50
service: media_player.volume_set
service_data:
volume_level: '{{ (state_attr("media_player.kef_ls50", "volume_level") - 0.05) | max(0) }}'
entity_id: media_player.kef_ls50
text: '{{ (100 * state_attr("media_player.kef_ls50", "volume_level")) | int }}%'
text_size: 16
icon_mdi: "volume-minus"
# Volume up
- entity_id: media_player.kef_ls50
service: media_player.volume_set
service_data:
volume_level: '{{ (state_attr("media_player.kef_ls50", "volume_level") + 0.05) | min(1) }}'
entity_id: media_player.kef_ls50
text: '{{ (100 * state_attr("media_player.kef_ls50", "volume_level")) | int }}%'
text_size: 16
icon_mdi: volume-plus
# Change pages
- special_type: previous-page
- special_type: next-page
- name: Testing
buttons:
- special_type: turn-off
- special_type: previous-page
- special_type: next-page
- icon: "url:https://raw.githubusercontent.com/basnijholt/home-assistant-streamdeck-yaml/main/assets/fireplace.png"
text: "yo"
- entity_id: light.living_room_lights
service: light.turn_on
service_data:
entity_id: light.living_room_lights
brightness: >-
{% set current_brightness = state_attr('light.living_room_lights', 'brightness') %}
{% set next_brightness = (current_brightness + 25.5) % 255 %}
{{ min(next_brightness, 255) | int }}
text: >-
{% set current_brightness = state_attr('light.living_room_lights', 'brightness') %}
{% set brightness_pct = (current_brightness / 255) * 100 %}
{{ brightness_pct | round }}%
- entity_id: media_player.kef_ls50
service: media_player.volume_mute
service_data:
entity_id: media_player.kef_ls50
is_volume_muted: >-
{% if is_state_attr('media_player.kef_ls50', 'is_volume_muted', true) %}
false
{% else %}
true
{% endif %}
icon_mdi: >-
{% if is_state_attr('media_player.kef_ls50', 'is_volume_muted', true) %}
volume-off
{% else %}
volume-high
{% endif %}
text: >-
{% if is_state_attr('media_player.kef_ls50', 'is_volume_muted', true) %}
Unmute
{% else %}
Mute
{% endif %}