-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yaml
203 lines (203 loc) · 5.28 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
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
close_all_blinds:
alias: Close all blinds
icon: mdi:window-shutter
mode: single
sequence:
- data: {}
service: cover.close_cover_tilt
target:
entity_id:
- cover.living_room_blinds
- cover.family_room_blinds
security_lighting_on:
alias: Security Lighting On
sequence:
- service: switch.turn_on
target:
entity_id: switch.living_room_lamp_module
data: {}
- delay: 00:{{ (range(1, 5) | random) }}:00
- service: light.turn_on
data:
brightness_pct: 100
target:
device_id: 0362fab09a27e3af33a03b7a87816af8
- delay: 00:{{ (range(1, 5) | random) }}:00
- service: light.turn_on
target:
entity_id: light.family_room_lamps
data:
brightness_pct: 100
- delay: 00:{{ (range(5, 15) | random) }}:00
- service: light.turn_on
target:
entity_id: light.office_light_bulb
data:
brightness_pct: 100
- delay: 00:{{ (range(1, 5) | random) }}:00
- service: light.turn_on
target:
entity_id: light.bedside_lamp_bulb
data:
brightness_pct: 100
mode: single
icon: mdi:lightbulb
security_lighting_off:
alias: Security Lighting Off
sequence:
- service: switch.turn_off
target:
entity_id: switch.living_room_lamp_module
data: {}
- delay: 00:{{ (range(1, 5) | random) }}:00
- service: light.turn_off
data: {}
target:
entity_id: light.guest_room_lamp_bulb
- delay: 00:{{ (range(1, 5) | random) }}:00
- service: light.turn_off
target:
entity_id: light.family_room_lamps
data: {}
- delay: 00:{{ (range(5, 15) | random) }}:00
- service: light.turn_off
target:
entity_id: light.office_light_bulb
data: {}
- delay: 00:{{ (range(1, 5) | random) }}:00
- service: light.turn_off
target:
entity_id: light.bedside_lamp_bulb
data: {}
mode: single
icon: mdi:lightbulb
irrigation_zone_1_run:
alias: Irrigation Zone 1 Run
sequence:
- data: {}
entity_id: switch.irrigation_control_back_yard
service: switch.turn_on
- delay: '{{ states(''input_number.zone_1_run_minutes'') | multiply(60) | timestamp_custom(''%H:%M:%S'',False)
}}'
- data: {}
entity_id: switch.irrigation_control_back_yard
service: switch.turn_off
mode: single
icon: mdi:water
irrigation_zone_3_run:
alias: Irrigation Zone 3 Run
sequence:
- entity_id: switch.irrigation_control_front_yard
service: switch.turn_on
- delay: '{{ states(''input_number.zone_3_run_minutes'') | multiply(60) | timestamp_custom(''%H:%M:%S'',False)
}}'
- entity_id: switch.irrigation_control_front_yard
service: switch.turn_off
mode: single
icon: mdi:water
open_all_blinds:
alias: Open all blinds
sequence:
- data: {}
service: cover.open_cover_tilt
target:
entity_id:
- cover.living_room_blinds
- cover.family_room_blinds
mode: single
icon: mdi:window-shutter
turn_on_xmas_lights:
alias: Turn On Xmas Lights Bright
sequence:
- type: turn_on
device_id: b2002d8b08a9a1927c2532bd668d7d2e
entity_id: 1f83b68093b2ed6c17f1aa565452342b
domain: light
brightness_pct: 100
- type: turn_on
device_id: 8b90b436c1854e4fa6d18dc2c9e076a7
entity_id: c9d614139d904b82b6c3aa5396200990
domain: switch
mode: single
icon: mdi:string-lights
turn_off_xmas_lights:
alias: Turn Off Xmas Lights
sequence:
- type: turn_off
device_id: 8b90b436c1854e4fa6d18dc2c9e076a7
entity_id: c9d614139d904b82b6c3aa5396200990
domain: switch
- type: turn_off
device_id: b2002d8b08a9a1927c2532bd668d7d2e
entity_id: 1f83b68093b2ed6c17f1aa565452342b
domain: light
mode: single
icon: mdi:string-lights
turn_on_xmas_lights_10:
alias: Turn On Xmas Lights Dim
sequence:
- type: turn_on
device_id: b2002d8b08a9a1927c2532bd668d7d2e
entity_id: 1f83b68093b2ed6c17f1aa565452342b
domain: light
brightness_pct: 60
- type: turn_on
device_id: 8b90b436c1854e4fa6d18dc2c9e076a7
entity_id: c9d614139d904b82b6c3aa5396200990
domain: switch
mode: single
icon: mdi:string-lights
sw_blinds_block_afternoon_sun:
alias: SW Blinds Block Afternoon Sun
sequence:
- service: cover.set_cover_tilt_position
data:
tilt_position: 100
target:
device_id:
- 4565c2edfb9842a1896dd5139be87fe1
- 01b25cc1a9ff49c997bcd154e5b683f8
mode: single
icon: mdi:blinds-horizontal-closed
new_script:
alias: Backup caravan
sequence:
- service: hassio.caravanbackup_partial
data:
folders:
- ssl
- share
name: Partial Backup {{ (as_timestamp(now()) | timestamp_custom('%Y-%m-%d %H:%M:%S'))
}}
addons:
- core_configurator
- cebe7a76_hassio_google_drive_backup
- core_mosquitto
- core_ssh
- a0d7b954_phpmyadmin
compressed: true
homeassistant: true
mode: single
backup_desert:
alias: Backup desert
sequence:
- service: hassio.desertbackup_partial
data:
folders:
- ssl
- share
name: Partial Backup {{ (as_timestamp(now()) | timestamp_custom('%Y-%m-%d %H:%M:%S'))
}}
addons:
- core_mosquitto
- core_letsencrypt
- core_nginx_proxy
- core_ssh
- core_mariadb
- a0d7b954_phpmyadmin
- core_configurator
- a0d7b954_nut
- cebe7a76_hassio_google_drive_backup
compressed: true
homeassistant: true
mode: single