-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDevices tab
607 lines (594 loc) · 17.9 KB
/
Devices tab
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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
type: custom:stack-in-card
keep:
outer_padding: true
border-radius: true
box_shadow: false
background: false
margin: false
cards:
- type: custom:mushroom-title-card
title: 📱 Devices
- type: custom:stack-in-card
mode: vertical
cards:
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-person-card
entity: person.xxz
use_entity_picture: true
layout: horizontal
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:mushroom-person-card
entity: person.xxx
use_entity_picture: true
layout: horizontal
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-entity-card
entity: sensor.xxzgalaxys20_wifi_connection
use_entity_picture: true
layout: horizontal
icon_color: green
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:mushroom-entity-card
entity: sensor.xxx_phone_wifi_connection
use_entity_picture: true
layout: horizontal
icon_color: green
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-entity-card
entity: sensor.xxzgalaxys20_battery_level
use_entity_picture: true
layout: horizontal
icon_color: green
name: xxz's S20+
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:mushroom-entity-card
entity: sensor.xxx_phone_battery_level
use_entity_picture: true
layout: horizontal
name: xxx's S20+
icon_color: green
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-entity-card
entity: sensor.huawei_watch_0310_battery_level
use_entity_picture: true
layout: horizontal
icon_color: green
name: xxz's Watch
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:mushroom-entity-card
entity: sensor.xxz_macbook_pro_internal_battery_level
use_entity_picture: true
layout: horizontal
name: xxz's Macbook Pro
icon_color: green
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
entity: number.macbook_pro_volume
tap_action:
action: null
icon: >
{% set vol_level = states(entity) | float %}
{% if (vol_level == 0) or is_state('switch.macbook_pro_mute',
'on') %}
mdi:volume-mute
{% elif vol_level > 50 %}
mdi:volume-high
{% elif vol_level < 10 %}
mdi:volume-low
{% else %}
mdi:volume-medium
{% endif %}
badge_icon: ''
icon_color: |
{% if is_state("switch.macbook_pro_mute", "on") %}
red
{% else %}
green
{% endif %}
primary: xxz's Macbook Pro Volume
secondary: |
{% set vol = states(entity) | float %}
{{ vol | round | int }}%
- type: custom:my-slider
entity: number.macbook_pro_volume
radius: 12px
height: 20px
mainSliderColor: rgb(var(--mush-rgb-indigo))
secondarySliderColor: rgba(var(--mush-rgb-indigo), 0.2)
mainSliderColorOff: rgb(var(--mush-rgb-disabled))
secondarySliderColorOff: rgba(var(--mush-rgb-disabled), 0.2)
thumbHorizontalPadding: 0px
thumbVerticalPadding: 0px
thumbWidth: 0px
card_mod:
style: |
ha-card {
padding: 0px 11px 11px;
--mush-rgb-disabled: 189,189,189;
--mush-rgb-indigo: 63, 81, 181;
}
- type: custom:mushroom-template-card
primary: ''
secondary: ''
icon: |
{% set vol_level = states(entity) | float %}
{% if vol_level == 0 %}
mdi:volume-mute
{% elif vol_level > 50 %}
mdi:volume-high
{% elif vol_level < 0.33 %}
mdi:volume-low
{% else %}
mdi:volume-medium
{% endif %}
badge_icon: ''
icon_color: |
{% if is_state("switch.macbook_pro_mute", "on") %}
red
{% else %}
green
{% endif %}
entity: switch.macbook_pro_mute
card_mod:
style: |-
ha-card {
margin-top: -97px;
margin-left: 00px;
}
- type: custom:stack-in-card
mode: vertical
cards:
- type: conditional
conditions:
- entity: input_boolean.away_lighting
state: 'on'
card:
type: custom:mushroom-entity-card
entity: input_boolean.away_lighting
use_entity_picture: true
layout: horizontal
name: Security Lighting Mode
icon_color: green
- type: markdown
content: '# '
style: |
ha-card {
box-shadow: none;
border: none;
margin: 0;
}
ha-markdown.no-header {
box-shadow: none;
padding: 0 0 0 0px;
border: none;
margin: 1;
}
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-entity-card
entity: binary_sensor.front_door_sensor_contact
use_entity_picture: true
layout: horizontal
icon_color: red
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:mushroom-template-card
primary: Dehumidifer ON time
secondary: >-
{% set hours = states('sensor.dehumidifier_time_on_today') | float
%}
{% set minutes = ((hours % 1) * 60) | int %}
{% set hours = (hours - (hours % 1)) | int %}
{{ '%02i:%02i'%(hours, minutes) }}
icon: mdi:clock
entity: sensor.dehumidifier_time_on_today
double_tap_action:
action: none
hold_action:
action: none
tap_action:
action: more-info
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-entity-card
entity: sensor.dehumidifier_cost_today
use_entity_picture: true
icon: mdi:currency-gbp
layout: horizontal
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:mushroom-entity-card
entity: sensor.dehumidifier_monthly_cost_sensor
name: Dehumidifier monthly cost
use_entity_picture: true
icon: mdi:currency-gbp
layout: horizontal
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-template-card
primary: Washes done - {{ now().timestamp() | timestamp_custom('%B') }}
icon: mdi:washing-machine
entity: sensor.amount_of_washes_done_2
multiline_secondary: false
fill_container: false
tap_action:
action: more-info
secondary: '{{ states(''sensor.amount_of_washes_done_2'')|int }}'
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:stack-in-card
mode: vertical
cards:
- type: conditional
conditions:
- entity: schedule.bin_day
state: 'on'
card:
type: custom:mushroom-template-card
primary: >-
{% set black_bin = (as_timestamp(now())|timestamp_custom ('%U')
| int % 2) == 0 %}
{% if (black_bin == True ) %}
It's Black bin week
{% else %}
It's Brown bin week
{% endif %}
icon: mdi:trash-can
layout: horizontal
icon_color: >
{% set black_bin = (as_timestamp(now())|timestamp_custom ('%U')
| int % 2) == 0 %}
{% if (black_bin == True ) %}
{% else %}
brown
{% endif %}
card_mod:
style: |
ha-card:active {
transform: scale(0.975);
transition: 0s;
}
- type: custom:mushroom-title-card
title: null
- type: custom:stack-in-card
mode: vertical
cards:
- type: custom:mini-media-player
entity: media_player.living_room_tv_2
group: false
info: short
source: full
progress: false
artwork: material
runtime: false
hide:
volume: false
source: false
controls: false
power: false
power_state: false
info: false
icon_state: false
volume_stateless: true
toggle_power: false
shortcuts:
buttons:
- icon: mdi:netflix
id: Netflix
type: source
- icon: mdi:microsoft-xbox
id: script.1581265772928
type: script
- icon: phu:amazon-logo
id: Amazon Prime Video
type: source
- icon: mdi:nintendo-switch
id: script.1613035089823
type: script
- icon: si:plex
id: script.1579992709710
type: script
- icon: mdi:television-classic
id: Live TV
name: LIVE TV
type: source
columns: 4
hide_when_off: true
sound_mode: icon
- type: custom:stack-in-card
mode: vertical
cards:
- type: custom:mini-media-player
entity: media_player.denon_avr
group: false
info: short
source: icon
artwork: material
progress: false
runtime: false
hide:
volume: false
source: false
controls: false
power: false
info: false
sound_mode: true
power_state: false
volume_level: false
icon_state: false
volume_stateless: false
toggle_power: false
- type: conditional
conditions:
- entity: media_player.denon_avr
state: 'on'
card:
type: custom:mushroom-template-card
primary: 'Sound Mode:'
secondary: |
{{state_attr('media_player.denon_avr', 'sound_mode_raw')}}
icon: si:dolby
fill_container: true
multiline_secondary: false
tap_action:
action: more-info
entity: media_player.denon_avr
- type: conditional
conditions:
- entity: media_player.denon_avr
state: 'on'
card:
type: entities
entities:
- entity: switch.denondynamiceq
name: Dynamic EQ
- entity: input_number.subwoofer_level
- entity: input_number.center_level
- type: custom:mini-media-player
entity: media_player.nvidia_shield
group: false
info: short
source: icon
artwork: material
progress: false
runtime: false
hide:
volume: true
source: false
controls: false
power: false
info: false
power_state: false
icon_state: false
volume_stateless: false
toggle_power: false
- type: custom:stack-in-card
mode: vertical
cards:
- type: conditional
conditions:
- entity: binary_sensor.nvidia_shield_source_plex
state: 'on'
card:
type: custom:mini-media-player
entity: media_player.plex_shield
group: false
info: scroll
artwork: full-cover
source: icon
progress: false
runtime: false
hide:
volume: true
source: false
controls: false
power: true
state_label: true
info: false
icon_state: false
power_state: false
volume_stateless: false
toggle_power: false
idle_view:
when_idle: true
when_standby: true
- type: custom:stack-in-card
mode: vertical
cards:
- type: conditional
conditions:
- entity: media_player.xboxone
state: 'on'
card:
type: custom:mini-media-player
entity: media_player.xboxone
group: false
info: short
artwork: material
source: icon
toggle_power: true
hide:
volume: true
source: false
controls: false
power: false
info: false
power_state: false
icon_state: false
state_label: false
- type: markdown
content: '# '
style: |
ha-card {
box-shadow: none;
border: none;
margin: 0;
}
ha-markdown.no-header {
box-shadow: none;
padding: 0 0 0 0px;
border: none;
margin: 1;
}
- type: custom:stack-in-card
keep: null
cards:
- type: custom:mini-media-player
entity: media_player.living_room_echo_dot
group: false
info: scroll
source: icon
artwork: material
progress: true
runtime: true
replace_mute: play_pause
hide:
volume: false
source: true
controls: true
power: true
info: false
volume_stateless: false
toggle_power: false
- type: markdown
content: '# '
style: |
ha-card {
box-shadow: none;
border: none;
margin: 0;
}
ha-markdown.no-header {
box-shadow: none;
padding: 0 0 0 0px;
border: none;
margin: 1;
}
- type: custom:mini-media-player
entity: media_player.bedroom_echo_dot
group: false
info: short
source: icon
artwork: material
progress: false
runtime: false
replace_mute: play_pause
hide:
volume: false
source: true
controls: true
power: true
info: false
volume_stateless: false
toggle_power: false
- type: markdown
content: '# '
style: |
ha-card {
box-shadow: none;
border: none;
margin: 0;
}
ha-markdown.no-header {
box-shadow: none;
padding: 0 0 0 0px;
border: none;
margin: 1;
}
- type: custom:mini-media-player
entity: media_player.office_echo_dot
group: false
info: short
source: icon
artwork: material
progress: false
runtime: false
replace_mute: play_pause
hide:
volume: false
source: true
controls: true
power: true
info: false
volume_stateless: false
toggle_power: false