-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.yaml
More file actions
132 lines (117 loc) · 3.21 KB
/
scripts.yaml
File metadata and controls
132 lines (117 loc) · 3.21 KB
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
alarm_lr:
alias: Alarm Living Room
sequence:
- service: media_player.play_media
entity_id: media_player.speaker
data:
media_content_id: /home/homeassistant/.homeassistant/alarm.mp3
media_content_type: music
- service: notify.jerry
data:
message: 'Movement alarm in Living Room'
doorbell_lr:
alias: Doorbell Living Room
sequence:
- service: media_player.play_media
entity_id: media_player.speaker
data:
media_content_id: /home/homeassistant/.homeassistant/doorbell-2.mp3
media_content_type: music
switches_off:
sequence:
service: input_boolean.turn_off
press_button:
sequence:
service: input_text.set_value
data:
entity_id: input_text.command
data_template:
value: "{{ value }}"
lr_light_flash:
alias: LR Light flash on
sequence:
- service: homeassistant.turn_on
data:
entity_id: switch.lr_wall_light_switch
- delay:
# time for flash light on
#seconds: 1
milliseconds: 150
- service: homeassistant.turn_off
data:
entity_id: switch.lr_wall_light_switch
- service: script.turn_on
data:
entity_id: script.lr_light_loop
lr_light_loop:
alias: LR Light flash loop
sequence:
- delay:
# time for flash light off
#seconds: 1
milliseconds: 150
- service: script.turn_on
data:
entity_id: script.lr_light_flash
hue_light_flash:
alias: Hue Light flash on
sequence:
- service: homeassistant.turn_on
data:
entity_id: light.hue_white_lamp_2
- delay:
# time for flash light on
#seconds: 1
milliseconds: 150
- service: homeassistant.turn_off
data:
entity_id: light.hue_white_lamp_2
- service: script.turn_on
data:
entity_id: script.hue_light_loop
hue_light_loop:
alias: Hue Light flash loop
sequence:
- delay:
# time for flash light off
#seconds: 1
milliseconds: 150
- service: script.turn_on
data:
entity_id: script.hue_light_flash
lock_front_door:
alias: Lock Front Door
sequence:
- service: lock.lock
data:
entity_id: lock.schlage_be469_touchscreen_deadbolt_locked
code: 0127
unlock_front_door:
alias: Unlock Front Door
sequence:
- service: lock.unlock
data:
entity_id: lock.schlage_be469_touchscreen_deadbolt_locked
code: 0127
toggle_front_garage_door:
alias: Open/Close Front Garage Door
sequence:
- service: switch.turn_on
entity_id: switch.shelly_shsw_1_246e36
# Turns off automatically
# - delay: '00:00:02'
# - service: switch.turn_off
# data:
# entity_id: switch.front_garage_door_switch
toggle_back_garage_door:
alias: Open/Close Back Garage Door
sequence:
- service: switch.turn_on
entity_id: switch.shelly_shsw_1_246581
# - delay: '00:00:02'
# - service: switch.turn_off
# data:
# entity_id: switch.back_garage_door_switch
update_speedtest:
sequence:
- service: speedtestdotnet.speedtest