-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
automations.yaml
243 lines (243 loc) · 5.89 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
- id: '1593364811767'
alias: Carmel medication reminder
description: ''
trigger:
- at: '11:00:00'
platform: time
- at: '17:00:00'
platform: time
- at: '23:00:00'
platform: time
condition: []
action:
- data:
message: '{{ ["Carmel, it''s time for your tablet", "Don''t forget to take your
tablet, Carmel", "Carmel, if you haven''t already taken your tablet, its time
to take it now", "Remember to take your tablet, Carmel" ] | random }}'
service: notify.google_assistant_sdk
- id: '1601999861619'
alias: Emma Chore reminder
description: ''
trigger:
- platform: time
at: '12:00:00'
condition:
- condition: time
weekday:
- mon
action:
- service: notify.mobile_app_emma_s_phone
data:
message: Take out recycling today!
title: Recycling day
data:
color: red
tag: recycling
sticky: true
- service: notify.mobile_app_emma_s_phone
data:
message: TTS
data:
channel: alarm_stream
tts_text: Hi There, it's recycling day!
mode: single
- id: '1621126851304'
alias: upstairs warning
description: ''
trigger:
- platform: state
entity_id: binary_sensor.upstairs_motion
to: 'on'
condition: []
action:
- service: notify.mobile_app_jenny_s_phone
data:
message: Movement on landing
title: Upstairs motion detected
mode: single
- id: '1631486733542'
alias: turn on pc in am
description: ''
trigger:
- platform: time
at: 07:30
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.pc
mode: single
- id: '1638319707185'
alias: immersion heater on at 5:30am
description: ''
trigger:
- platform: time
at: 05:30:00
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.immersion_heater
data: {}
mode: single
- id: '1667433779345'
alias: Doorbell
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.doorbell_button
to: 'on'
condition: []
action:
- service: media_player.volume_mute
data:
is_volume_muted: true
target:
entity_id: "{% for state in dict([\nstates.media_player.living_room_speaker,\nstates.media_player.bedroom_speaker,\nstates.media_player.emma_s_room_speaker,\nstates.media_player.kitchen_speaker]
| groupby('state'))['off']\n-%}\n {% if not loop.first and loop.length >
1 %}, {% endif %}\n {{- state.entity_id | trim(\",\") }}\n{%- endfor %}\n"
enabled: false
- service: media_player.turn_on
data: {}
target:
entity_id: media_player.all_speakers
- service: media_player.volume_set
data:
volume_level: 0.7
target:
entity_id:
- media_player.bedroom_speaker
- media_player.kitchen_speaker
- media_player.emma_s_room_speaker
- media_player.living_room_speaker
- service: media_player.volume_mute
data:
is_volume_muted: false
target:
entity_id: media_player.all_speakers
enabled: false
- service: media_player.play_media
target:
entity_id: media_player.all_speakers
data:
media_content_id: media-source://media_source/local/the_avengers_theme.mp3
media_content_type: audio/mpeg
metadata:
title: the_avengers_theme.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
enabled: true
mode: single
- id: '1671043471713'
alias: Default Theme
description: Set the default theme at startup
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: frontend.set_theme
data:
name: No Borders
mode: single
- id: '1681351860906'
alias: AA jen
description: ''
trigger:
- platform: time
at: 05:50:00
condition: []
action:
- service: light.turn_on
data: {}
target:
entity_id: light.bedroom_ceiling_light
mode: single
- id: '1703718710659'
alias: Fireplace lights with wall lights
description: Turns fireplace LEDs on and off with living room wall lights
trigger:
- platform: state
entity_id:
- light.sitting_room_wall_lights
id: 'On'
to: 'on'
- platform: state
entity_id:
- light.sitting_room_wall_lights
to: 'off'
id: 'Off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- 'On'
sequence:
- service: light.turn_on
target:
entity_id: light.fireplace_led
data: {}
- conditions:
- condition: trigger
id:
- 'Off'
sequence:
- service: light.turn_off
target:
entity_id: light.fireplace_led
data: {}
mode: single
- id: '1703801427013'
alias: Shopping list at Aldi
description: ''
trigger:
- platform: zone
entity_id: person.jenny_gorton
zone: zone.aldi
event: enter
condition: []
action:
- service: notify.mobile_app_jenny_s_phone
data:
message: Do you want to see your shopping list?
title: Arrived at Aldi
data:
actions:
- title: open in Home Assistant
action: uri
uri: /lovelace-dev/shopping
- title: Open in Our Groceries
action: uri
uri: app://com.ourgroceries.android
mode: single
- id: '1708096519245'
alias: Moonraker Integration
description: Disables Moonraker integration when printer offline
trigger:
- platform: state
entity_id:
- binary_sensor.ping_ender3
condition: []
action:
- if:
- condition: state
entity_id: binary_sensor.ping_ender3
state: 'on'
then:
- service: homeassistant.enable_config_entry
data:
config_entry_id: 82a65634001a36256d3471ab57199ebd
else:
- service: homeassistant.disable_config_entry
metadata: {}
data:
config_entry_id: 82a65634001a36256d3471ab57199ebd
mode: single