-
Notifications
You must be signed in to change notification settings - Fork 8
/
music.yaml
337 lines (337 loc) · 12.6 KB
/
music.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
background: center / cover no-repeat fixed url('/local/lovelace/bg_long.png?v=1')
kiosk_mode:
mobile_settings:
hide_header: true
views:
- icon: 'mdi:music'
panel: false
badges: []
cards:
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: 'custom:button-card'
size: 25px
icon: 'mdi:close'
tap_action:
action: navigate
navigation_path: /lovelace/0
styles:
card:
- width: 40px
- height: 40px
- background-color: 'rgba(255,255,255,0)'
- box-shadow: none
icon:
- margin-left: px
- type: 'custom:gap-card'
height: <height>
size: <size>
- type: 'custom:button-card'
size: 25px
icon: |
[[[
if (states['media_player.entry'].state == "playing")
return "mdi:cast-connected";
else if (states['media_player.front_living_room'].state == "playing")
return "mdi:cast-connected";
else if (states['media_player.kitchen_speaker'].state == "playing")
return "mdi:cast-connected";
else if (states['media_player.living_rooms'].state == "playing")
return "mdi:cast-connected";
else if (states['media_player.office_speaker'].state == "playing")
return "mdi:cast-connected";
else if (states['media_player.family_room_speaker_cast'].state == "playing")
return "mdi:cast-connected";
else
return "mdi:cast";
]]]
styles:
card:
- width: 40px
- height: 40px
- background-color: 'rgba(255,255,255,0)'
- box-shadow: none
icon:
- margin-left: px
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Select where to cast
card:
type: vertical-stack
cards:
- type: 'custom:mini-media-player'
group: true
min_volume: 5
max_volume: 75
entity: media_player.office_speaker
name: Office
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.office_mp
hide:
controls: true
icon: false
info: true
power: true
progress: true
state_label: false
volume_level: false
- type: 'custom:mini-media-player'
name: Kitchen
group: true
min_volume: 5
max_volume: 75
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.kitchen_mp
hide:
controls: true
icon: false
info: true
power: true
progress: true
state_label: false
volume_level: false
entity: media_player.kitchen_speaker
- type: 'custom:mini-media-player'
group: true
min_volume: 5
max_volume: 75
name: Family Room
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.familyroom_mp
hide:
controls: true
icon: false
info: true
power: true
progress: true
state_label: false
volume_level: false
entity: media_player.family_room_speaker_cast
- type: 'custom:mini-media-player'
entity: media_player.front_living_room
group: true
min_volume: 5
max_volume: 75
name: Front Room
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.frontroom_mp
hide:
controls: true
icon: false
info: true
power: true
progress: true
state_label: false
volume_level: false
- type: 'custom:mini-media-player'
name: Living Rooms
group: true
min_volume: 5
max_volume: 75
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.livingrooms_gp
hide:
controls: true
icon: false
info: true
power: true
progress: true
state_label: false
volume_level: false
entity: media_player.living_rooms
- type: 'custom:mini-media-player'
entity: media_player.entry
group: true
min_volume: 5
max_volume: 75
name: Entry
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.entry_gp
hide:
controls: true
icon: false
info: true
power: true
progress: true
state_label: false
volume_level: false
deviceID:
- this
- dashboard
style:
$: >
.mdc-dialog .mdc-dialog__container .mdc-dialog__surface
{
border-radius: 0px;
}
.: |
:host {
--mdc-theme-surface: rgba(0,0,0,0.8);
--secondary-background-color: rgba(69,90,100,1);
--ha-card-background: rgba(0,0,0,0.5);
}
:host .content {
width: 90vw;
height: 95vh;
}
- type: picture-glance
entities: []
camera_image: camera.album_art
tap_action:
action: none
hold_action:
action: none
card_mod:
style: |
ha-card {
width: 98%;
margin: auto;
border-radius: 0;
position: relative;
}
.box {
background: rgba(255,255,255,0) !important;
}
- type: 'custom:mod-card'
card_mod:
style: |
ha-card {
background: rgba(255, 255, 255, 0.0);
border-radius: 0;
box-shadow: none;
position: relative;
top: -10px;
}
card:
type: 'custom:html-template-card'
ignore_line_breaks: true
content: |
<style>
.title {
display: block;
font-weight: 500;
font-size: 1.2em;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; !important;
}
.artist {
display: block;
text-align: center;
}
</style>
<div style="">
{% if state_attr("media_player.music", "media_playlist") -%}
<h3>{{ state_attr('media_player.music', 'media_playlist') }}</h3>
<span class="title">{{ state_attr('media_player.music', 'media_title') }}</br></span>
{% if state_attr("media_player.music", "media_artist") -%}
<span class="artist">{{ state_attr('media_player.music', 'media_artist') }}</span>
{%- else -%}
<center> </center>
{%- endif %}
{%- else -%}
<h3> </h3>
<span class="title"> </br></span>
<span class="artist"> </span>
{%- endif %}
</div>
- type: 'custom:mini-media-player'
entity: media_player.music
toggle_power: true
artwork: none
source: full
name: Music Stream
group: true
scale: '1.25'
info: scroll
hide:
info: true
icon: true
name: true
runtime: true
volume: true
power: false
controls: true
progress: true
style: |
ha-card {
float:right;
position: relative;
top: -140px;
}
- type: 'custom:mini-media-player'
entity: media_player.music
toggle_power: true
artwork: none
source: full
name: Music Stream
info: scroll
group: true
scale: '1.25'
hide:
info: true
icon: true
name: true
runtime: false
volume: true
power: true
source: true
controls: true
card_mod:
style: |
ha-card {
width: 93%;
margin: auto;
position: relative;
top: -100px;
}
- type: 'custom:mini-media-player'
entity: media_player.music
toggle_power: true
artwork: none
source: full
name: Music Stream
info: scroll
group: true
scale: '1.25'
hide:
info: true
icon: true
name: true
volume: true
power: true
source: true
progress: true
play_pause: true
play_stop: false
card_mod:
style: |
ha-card {
margin-left: auto;
position: relative;
top: -100px;
}
title: Music