-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
103 lines (103 loc) · 2.49 KB
/
scripts.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
pullrestart:
alias: Pull from git and restart HA
sequence:
- service: shell_command.git_pull
- service: homeassistant.restart
riavvia_mi_box:
alias: Riavvia Mi Box
sequence:
- service: androidtv.adb_command
data:
entity_id: media_player.mi_box_s
command: reboot
mode: single
riavvia_duo:
alias: Riavvia Duo
sequence:
- service: androidtv.adb_command
data:
entity_id: media_player.mi_box_s
command: reboot
- delay: 00:00:05
- wait_for_trigger:
- platform: state
entity_id: media_player.mi_box_s
for: '2'
to: idle
timeout: 00:05:00
- service: media_player.select_source
data:
entity_id: media_player.mi_box_s
source: com.google.android.apps.tachyon
mode: single
riavvia_mi_tv:
alias: Riavvia Lolita
sequence:
- service: androidtv.adb_command
data:
entity_id: media_player.mi_box_s
command: reboot
- delay: 00:00:05
- wait_for_trigger:
- platform: state
entity_id: media_player.mi_box_s
to: idle
for: '2'
timeout: 00:05
- service: media_player.select_source
data:
entity_id: media_player.mi_box_s
source: com.google.android.tv
mode: single
beamer_focus:
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.beamer_focus_ongoing
- service: androidtv.adb_command
data:
entity_id: media_player.beamer
command: 'adb shell am start -a com.fengmi.projector.imaging.action.START_FOCUS '
- delay:
hours: 0
minutes: 0
seconds: 13
milliseconds: 0
- service: shell_command.beamer_switch_hdmi
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: input_boolean.turn_off
target:
entity_id: input_boolean.beamer_focus_ongoing
mode: single
alias: Beamer focus
icon: mdi:audio-video
alfred_sale:
alias: Alfred sale
sequence:
- device_id: 842233fb42d362fa61fcb54e0162c4bb
domain: select
entity_id: select.alfred_selected_map
type: select_option
option: Sesto piano
- device_id: 842233fb42d362fa61fcb54e0162c4bb
domain: vacuum
entity_id: vacuum.alfred
type: clean
mode: single
alfred_sale_duplica:
alias: Alfred scende
sequence:
- device_id: 842233fb42d362fa61fcb54e0162c4bb
domain: select
entity_id: select.alfred_selected_map
type: select_option
option: Quinto piano
- device_id: 842233fb42d362fa61fcb54e0162c4bb
domain: vacuum
entity_id: vacuum.alfred
type: dock
mode: single