-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
759 lines (759 loc) · 17.8 KB
/
automations.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
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
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
- id: '1589029641106'
alias: Amp aus wenn keine Musik auf SHD
description: ''
trigger:
- entity_id: media_player.shd_studio_roon
for: '600'
platform: state
to: paused
condition:
- condition: state
entity_id: input_select.preamp_select
state: LAN
- condition: device
device_id: f7b4ed5b4b9b4c4a8e2c1f53c67ca094
domain: switch
entity_id: switch.boxen_internal
type: is_on
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch.amp
type: turn_off
- id: '1589029996428'
alias: Amp an wenn Musik auf SHD
description: ''
trigger:
- entity_id: media_player.shd_studio_roon
platform: state
to: playing
condition:
- condition: device
device_id: f7b4ed5b4b9b4c4a8e2c1f53c67ca094
domain: switch
entity_id: switch.boxen_internal
type: is_on
- condition: state
entity_id: input_select.preamp_select
state: LAN
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch.amp
type: turn_on
- id: '1589030773684'
alias: Amp aus wenn keine Musik auf Digione
description: ''
trigger:
- entity_id: media_player.digione_3
for: '600'
platform: state
to: paused
condition:
- condition: state
entity_id: input_select.preamp_select
state: SPDIF
- condition: device
device_id: f7b4ed5b4b9b4c4a8e2c1f53c67ca094
domain: switch
entity_id: switch.boxen_internal
type: is_on
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch.amp
type: turn_off
- id: '1589030773685'
alias: Amp aus wenn keine Musik auf Boxen Bastian
description: ''
trigger:
- entity_id: media_player.boxen_bastian
for: '600'
platform: state
to: paused
condition:
- condition: state
entity_id: input_select.preamp_select
state: TOSLINK
- condition: device
device_id: f7b4ed5b4b9b4c4a8e2c1f53c67ca094
domain: switch
entity_id: switch.boxen_internal
type: is_on
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch
type: turn_off
- id: '1589030973285'
alias: 'Amp an wenn Musik auf Digione '
description: ''
trigger:
- entity_id: media_player.digione_3
platform: state
to: playing
condition:
- condition: device
device_id: f7b4ed5b4b9b4c4a8e2c1f53c67ca094
domain: switch
entity_id: switch.boxen_internal
type: is_on
- condition: state
entity_id: input_select.preamp_select
state: SPDIF
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch.amp
type: turn_on
mode: single
- id: '1589030973286'
alias: 'Amp an wenn Musik auf Boxen Bastian '
description: ''
trigger:
- entity_id: media_player.boxen_bastian
platform: state
to: playing
condition:
- condition: device
device_id: f7b4ed5b4b9b4c4a8e2c1f53c67ca094
domain: switch
entity_id: switch.boxen_internal
type: is_on
- condition: state
entity_id: input_select.preamp_select
state: TOSLINK
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch.amp
type: turn_on
mode: single
- id: '1589352837782'
alias: Bett Switch - Single Press
description: ''
trigger:
- device_id: b7294f48c20b40c395081429ca461d2f
domain: deconz
platform: device
subtype: turn_on
type: remote_button_short_release
condition: []
action:
- service: homeassistant.toggle
data: {}
entity_id: switch.basti_decke
mode: single
- id: '1591102176546'
alias: Amp an Wenn auf USB geschaltet wird
description: ''
trigger:
- entity_id: input_select.preamp_select
platform: state
to: USB
condition: []
action:
- type: turn_on
device_id: 87da8fc04ee6427da2840138619a40b3
entity_id: switch.amp
domain: switch
mode: single
- id: '1595596034819'
alias: 'Wohnzimmer Switch - Single Press '
description: ''
trigger:
- device_id: e4a0722180c34443af0ad65f82431ea4
domain: deconz
platform: device
subtype: turn_on
type: remote_button_short_release
condition: []
action:
- data: {}
service: script.kueche_toggle
mode: single
- id: '1595596090965'
alias: ' Wohnzimmer Switch - Double Press'
description: ''
trigger:
- device_id: e4a0722180c34443af0ad65f82431ea4
domain: deconz
platform: device
subtype: turn_on
type: remote_button_double_press
condition: []
action:
- device_id: eb24add2488b42c2bede106bc2028353
domain: light
entity_id: light.tischlampe
type: toggle
mode: single
- id: '1595596182655'
alias: Wohnzimmer Switch - Long press
description: ''
trigger:
- device_id: e4a0722180c34443af0ad65f82431ea4
domain: deconz
platform: device
subtype: turn_on
type: remote_button_long_press
condition: []
action:
- type: toggle
device_id: 36f51697bae645558e641fded1f8adbe
entity_id: light.couchbirne1
domain: light
- type: toggle
device_id: 78a1a748dc153421c3fbe4d0cefe33e1
entity_id: light.couchbirne2
domain: light
mode: single
- id: '1601048286276'
alias: Kücke Cube Flip90 - Tisch
description: ''
trigger:
- device_id: 13731e3f49364c41b3b86cc7e63e3ed2
domain: deconz
platform: device
type: remote_flip_90_degrees
subtype: ''
condition: []
action:
- type: toggle
device_id: eb24add2488b42c2bede106bc2028353
entity_id: light.tischlampe
domain: light
mode: single
- id: '1601048783747'
alias: Küche Cube Flip 180 -> Gute Nacht
description: ''
trigger:
- device_id: 13731e3f49364c41b3b86cc7e63e3ed2
domain: deconz
platform: device
type: remote_flip_180_degrees
subtype: ''
condition: []
action:
- service: script.gute_nacht
data: {}
mode: single
- id: '1601048841478'
alias: Küche Cube Rotate Right -> Tisch Heller
description: ''
trigger:
- device_id: 13731e3f49364c41b3b86cc7e63e3ed2
domain: deconz
platform: device
type: remote_turned_clockwise
subtype: ''
condition: []
action:
- service: script.tisch_bright_plus_50
data: {}
mode: parallel
max: 10
- id: '1601048865930'
alias: Küche Cube Rotate Left -> Tisch Dunkler
description: ''
trigger:
- device_id: 13731e3f49364c41b3b86cc7e63e3ed2
domain: deconz
platform: device
type: remote_turned_counter_clockwise
subtype: ''
condition: []
action:
- service: script.tisch_bright_minus_50
data: {}
mode: parallel
max: 10
- id: '1601048930926'
alias: Küche Cube Move -> Wohnzimmer Lampe
description: ''
trigger:
- device_id: 13731e3f49364c41b3b86cc7e63e3ed2
domain: deconz
platform: device
type: remote_moved_any_side
subtype: ''
condition: []
action:
- type: toggle
device_id: 6fd6d3edae1f416b85918680f3d1359c
entity_id: light.wohnzimmer_lampe
domain: light
mode: single
- id: '1601118514589'
alias: Wohnzimmer Switch Tripple Press
description: ''
trigger:
- device_id: e4a0722180c34443af0ad65f82431ea4
domain: deconz
platform: device
type: remote_button_triple_press
subtype: turn_on
condition: []
action:
- service: script.wohnzimmer_decke_an_aus
data: {}
mode: single
- id: '1604852341988'
alias: Wohnzimmer Switch 4 mal -> Wohnzimmerlampe
description: ''
trigger:
- device_id: e4a0722180c34443af0ad65f82431ea4
domain: deconz
platform: device
type: remote_button_quadruple_press
subtype: turn_on
condition: []
action:
- type: toggle
device_id: 6fd6d3edae1f416b85918680f3d1359c
entity_id: light.wohnzimmer_lampe
domain: light
mode: single
- id: '1611399204202'
alias: Kammer-Licht bei Bewegung - Neu
description: ''
trigger:
- type: motion
platform: device
device_id: cd4ed5acd5df4435b3f6edbb478880f9
entity_id: binary_sensor.presence_11
domain: binary_sensor
condition: []
action:
- service: light.turn_on
data: {}
entity_id: light.kammerlicht
mode: single
- id: '1611404496225'
alias: Amplifier automatisch ??? wenn Strom auf Boxen
description: ''
trigger:
- platform: state
entity_id: switch.amp
from: unavailable
to: 'off'
condition: []
action:
- type: turn_on
device_id: 87da8fc04ee6427da2840138619a40b3
entity_id: switch.amp
domain: switch
mode: single
- id: '1611404679111'
alias: KüchenSwitch - Single Press
description: ''
trigger:
- device_id: 5b75a69731a14ff495d9a97119a0ce96
domain: deconz
platform: device
type: remote_button_short_release
subtype: turn_on
condition: []
action:
- service: script.kueche_toggle
data: {}
mode: single
- id: '1611404752064'
alias: Küche Switch - Double Press
description: ''
trigger:
- device_id: 5b75a69731a14ff495d9a97119a0ce96
domain: deconz
platform: device
type: remote_button_double_press
subtype: turn_on
condition: []
action:
- type: toggle
device_id: eb24add2488b42c2bede106bc2028353
entity_id: light.tischlampe
domain: light
mode: single
- id: '1611404796376'
alias: Küche Switch - Tripple Press
description: ''
trigger:
- device_id: 5b75a69731a14ff495d9a97119a0ce96
domain: deconz
platform: device
type: remote_button_triple_press
subtype: turn_on
condition: []
action:
- service: script.wohnzimmer_decke_an_aus
data: {}
mode: single
- id: '1611404926307'
alias: Küchen Switch - Long Press
description: ''
trigger:
- device_id: 5b75a69731a14ff495d9a97119a0ce96
domain: deconz
platform: device
type: remote_button_long_press
subtype: turn_on
condition: []
action:
- service: script.kueche_off
data: {}
- service: light.turn_off
data: {}
entity_id: light.couch
- service: light.turn_off
data: {}
entity_id: light.tischlampe
- service: light.turn_off
data: {}
entity_id: light.wohnzimmer_lampe
mode: single
- id: '1611406614124'
alias: ' Single Press - Gäste Zimmer Switch '
description: ''
trigger:
- device_id: 4b28cad7e4d944569f59a933cd31db21
domain: deconz
platform: device
type: remote_button_short_release
subtype: turn_on
condition: []
action:
- service: media_player.media_next_track
data: {}
entity_id: media_player.gastezimmer_boxen_2
mode: single
- id: '1611406649389'
alias: 'Double Press - Gäste Zimmer Switch '
description: ''
trigger:
- device_id: 4b28cad7e4d944569f59a933cd31db21
domain: deconz
platform: device
type: remote_button_double_press
subtype: turn_on
condition: []
action:
- service: media_player.media_previous_track
data: {}
entity_id: media_player.gastezimmer_boxen_2
mode: single
- id: '1611406685958'
alias: 'Long press - Gäste Zimmer Switch '
description: ''
trigger:
- device_id: 4b28cad7e4d944569f59a933cd31db21
domain: deconz
platform: device
type: remote_button_long_release
subtype: turn_on
condition: []
action:
- service: media_player.media_play_pause
data: {}
entity_id: media_player.gastezimmer_boxen_2
mode: single
- id: '1611417810639'
alias: Single Press - Basti Eingang Switch
description: ''
trigger:
- device_id: 2eafa758aaab4a59b355205f92810fd3
domain: deconz
platform: device
type: remote_button_short_release
subtype: turn_on
condition: []
action:
- service: switch.toggle
data: {}
entity_id: switch.basti_decke
mode: single
- id: '1611417843030'
alias: Double Press - Basti Eingang Switch
description: ''
trigger:
- device_id: 2eafa758aaab4a59b355205f92810fd3
domain: deconz
platform: device
type: remote_button_double_press
subtype: turn_on
condition: []
action:
- service: switch.toggle
data: {}
entity_id: switch.basti_lampe
mode: single
- id: '1611417939005'
alias: Long Press - Basti Eingang Switch
description: ''
trigger:
- device_id: 2eafa758aaab4a59b355205f92810fd3
domain: deconz
platform: device
type: remote_button_long_press
subtype: turn_on
condition: []
action:
- service: switch.turn_off
data: {}
entity_id: switch.basti_decke
- service: switch.turn_off
data: {}
entity_id: switch.basti_lampe
- service: light.turn_off
data: {}
entity_id: light.schreibtischlampe
mode: single
- id: '1611418251207'
alias: Kammer Licht aus nach 2 Minuten
description: ''
trigger:
- type: no_motion
platform: device
device_id: cd4ed5acd5df4435b3f6edbb478880f9
entity_id: binary_sensor.presence_11
domain: binary_sensor
for:
hours: 0
minutes: 2
seconds: 0
condition: []
action:
- service: homeassistant.turn_off
data: {}
entity_id: switch.kammer
mode: single
- id: '1611418368185'
alias: Single Press - Desk
description: ''
trigger:
- device_id: df548952f7344a7495cc4a5f020c20cc
domain: deconz
platform: device
type: remote_button_short_release
subtype: turn_on
condition: []
action:
- service: script.desk_switch_to_coaxial_or_workstation_on
data: {}
mode: single
- id: '1611418391333'
alias: Double Press - Desk
description: ''
trigger:
- device_id: df548952f7344a7495cc4a5f020c20cc
domain: deconz
platform: device
type: remote_button_double_press
subtype: turn_on
condition: []
action:
- service: script.music_box_set_input_toslink
data: {}
mode: single
- id: '1611418422696'
alias: Long press - Desk
description: ''
trigger:
- device_id: df548952f7344a7495cc4a5f020c20cc
domain: deconz
platform: device
type: remote_button_long_press
subtype: turn_on
condition: []
action:
- service: script.music_box_set_input_usb
data: {}
mode: single
- id: '1611418590092'
alias: Double Press - Basti Bed Switch
description: ''
trigger:
- device_id: b7294f48c20b40c395081429ca461d2f
domain: deconz
platform: device
type: remote_button_double_press
subtype: turn_on
condition: []
action:
- service: homeassistant.toggle
data: {}
entity_id: switch.basti_lampe
mode: single
- id: '1611418648191'
alias: Long Press - Basti Bed Switch
description: ''
trigger:
- device_id: b7294f48c20b40c395081429ca461d2f
domain: deconz
platform: device
type: remote_button_long_press
subtype: turn_on
condition: []
action:
- service: homeassistant.toggle
data: {}
entity_id: switch.basti_lampe
- service: homeassistant.toggle
data: {}
entity_id: switch.basti_decke
mode: single
- id: '1611418682543'
alias: Tripple Press - Basti Bed Switch
description: ''
trigger:
- device_id: b7294f48c20b40c395081429ca461d2f
domain: deconz
platform: device
type: remote_button_triple_press
subtype: turn_on
condition: []
action:
- service: homeassistant.toggle
data: {}
entity_id: light.schreibtischlampe
mode: single
- id: '1618655381783'
alias: Amp aus wenn Computer Aus
description: ''
trigger:
- entity_id: switch.thinkpad_dock
for: '600'
platform: state
to: 'off'
condition:
- condition: state
entity_id: input_select.preamp_select
state: USB
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch.amp
type: turn_off
mode: single
- id: '1618996490717'
alias: Amp aus wenn keine Musik auf Boxen Bastian
description: ''
trigger:
- entity_id: media_player.boxen_bastian
for: '600'
platform: state
to: paused
condition:
- condition: state
entity_id: input_select.preamp_select
state: TOSLINK
action:
- device_id: 87da8fc04ee6427da2840138619a40b3
domain: switch
entity_id: switch.amp
type: turn_off
mode: single
- id: '1621689536161'
alias: Stope NewMarshall bei Step 1
description: ''
trigger:
- platform: state
entity_id: binary_sensor.nnew_marshall_1
to: 'on'
for: '1'
condition: []
action:
- service: media_player.media_stop
target:
entity_id: media_player.chromecastaudio3835
mode: single
- id: '1621689728221'
alias: New Marshall 2 eingeschaltet
description: ''
trigger:
- type: turned_on
platform: device
device_id: 05726d189cbe3974aa116be6955fed96
entity_id: binary_sensor.nnew_marshall_2
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
condition: []
action:
- service: script.new_marshall_sr1
mode: single
- id: '1621709883158'
alias: New Marshall 3 eingeschaltet
description: ''
trigger:
- type: turned_on
platform: device
device_id: 05726d189cbe3974aa116be6955fed96
entity_id: binary_sensor.nnew_marshall_3
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
condition: []
action:
- service: script.new_marshall_br3
mode: single
- id: '1621710017364'
alias: New Marshall 4 eingeschaltet
description: ''
trigger:
- type: turned_on
platform: device
device_id: 05726d189cbe3974aa116be6955fed96
entity_id: binary_sensor.nnew_marshall_4
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
condition: []
action:
- service: script.new_marshall_br5
mode: single
- id: '1621772965190'
alias: Marshall Switch Aus wenn keine Musik
description: ''
trigger:
- platform: state
entity_id: media_player.chromecastaudio3835
to: paused
for: '300'
- platform: state
entity_id: media_player.chromecastaudio3835
to: idle
for: '300'
- platform: state
entity_id: media_player.chromecastaudio3835
to: 'off'
for: '300'
condition: []
action:
- type: turn_off
device_id: 05726d189cbe3974aa116be6955fed96
entity_id: switch.marshall_switch
domain: switch
mode: single
- id: '1621773083250'
alias: Marshall Switch ein wenn Musik auf Wohnzimmer Boxen
description: ''
trigger:
- platform: state
entity_id: media_player.chromecastaudio3835
to: playing
condition: []
action:
- type: turn_on
device_id: 05726d189cbe3974aa116be6955fed96
entity_id: switch.marshall_switch
domain: switch
mode: single