Debian Codegraph @

tests/fixtures/simple_automations.yaml

raw symbols SCIP
1 - id: "1658785995596"
2 alias: eve button
3 description: ""
4 trigger:
5 - platform: device
6 device_id: 6775f9f6fd0f330d93ca5ba3522eaa6e
7 domain: homekit_controller
8 type: button1
9 subtype: single_press
10 condition: []
11 action:
12 - service: persistent_notification.create
13 data:
14 title: button
15 message: pressed
16 mode: single
17 - id: "1666989217519"
18 alias: wemo
19 description: ""
20 trigger:
21 - platform: device
22 device_id: 55749932cbb252643823ab393d8596be
23 domain: homekit_controller
24 type: button1
25 subtype: single_press
26 - platform: device
27 device_id: 55749932cbb252643823ab393d8596be
28 domain: homekit_controller
29 type: button2
30 subtype: single_press
31 - platform: device
32 device_id: 55749932cbb252643823ab393d8596be
33 domain: homekit_controller
34 type: button3
35 subtype: single_press
36 condition: []
37 action:
38 - service: notify.notify
39 data:
40 message: any
41 title: any
42 mode: single
43 - id: "1678868902556"
44 alias: Purge noisy power sensors
45 description: ""
46 trigger:
47 - platform: time
48 at: 04:15:00
49 condition: []
50 action:
51 - service: recorder.purge_entities
52 data:
53 domains: []
54 entity_globs: []
55 keep_days: 5
56 target:
57 entity_id: sensor.power_sensor_0
58 mode: single
59 - id: shelly packet
60 alias: shelly packet ss
61 description: ""
62 trigger:
63 - type: value
64 platform: device
65 device_id: 78ade3583947b6e6304eebe05b40c988
66 entity_id: sensor.sbbt_002c_ad7b_packet_id
67 domain: sensor
68 above: 0
69 action:
70 - service: notify.notify
71 data:
72 title: shelly packet
73 message: shelly packet
74 mode: single
75 - id: "1681931945001"
76 alias: shelly button press
77 description: ""
78 trigger:
79 - platform: device
80 device_id: 78ade3583947b6e6304eebe05b40c988
81 domain: bthome
82 type: button
83 subtype: press
84 condition: []
85 action:
86 - service: notify.persistent_notification
87 data:
88 message: shelly button press
89 title: shelly button press
90 mode: single
91 - id: "1686257663573"
92 alias: harmony 1
93 description: ""
94 trigger: []
95 condition: []
96 action:
97 - parallel:
98 - service: remote.send_command
99 data:
100 device: Apple TV
101 command: Stop
102 target:
103 entity_id: remote.alexander_down_guest
104 - service: remote.send_command
105 data:
106 device: Apple TV
107 command: Stop
108 target:
109 entity_id: remote.alexander_down_guest
110 - service: remote.send_command
111 data:
112 device: Apple TV
113 command: Stop
114 target:
115 entity_id: remote.alexander_down_guest
116 - service: remote.send_command
117 data:
118 device: Apple TV
119 command: Stop
120 target:
121 entity_id: remote.alexander_down_guest
122 - service: remote.send_command
123 data:
124 device: Apple TV
125 command: Stop
126 target:
127 entity_id: remote.alexander_down_guest
128 - service: remote.send_command
129 data:
130 device: Apple TV
131 command: Stop
132 target:
133 entity_id: remote.alexander_down_guest
134 mode: single
135 - id: "1687336680462"
136 alias: New Automation
137 description: ""
138 trigger:
139 - platform: persistent_notification
140 update_type:
141 - added
142 - removed
143 - current
144 - updated
145 condition: []
146 action:
147 - service: button.press
148 data: {}
149 target:
150 entity_id: button.dev_garage_restart
151 - service: notify.mobile_app_xx_mail
152 data:
153 title: new notify!
154 message:
155 "{{ trigger.notification }} {{ trigger.notification.notification_id
156 }} {{ trigger.notification.title }} {{ trigger.notification.message }}"
157 mode: single
158 - id: "1712451177442"
159 alias: loop
160 description: ""
161 trigger:
162 - platform: sun
163 event: sunrise
164 offset: 0
165 enabled: false
166 condition: []
167 action:
168 - repeat:
169 sequence:
170 - if:
171 - condition: template
172 value_template: "{{1 != 1}}"
173 then:
174 - event: test
175 event_data: {}
176 until:
177 - condition: template
178 value_template: "{{1 != 1}}"
179 mode: single
180 - id: "1712452897893"
181 alias: turn off plug
182 description: ""
183 trigger: []
184 condition: []
185 action:
186 - type: turn_off
187 device_id: 79437d13890e112dd07d44bb983177b2
188 entity_id: 8241653a817bd9695b79702215e0bde2
189 domain: switch
190 mode: restart
191 - id: "1712595892078"
192 alias: Raise temperature error check
193 description: ""
194 trigger:
195 - platform: state
196 entity_id:
197 - automation.raise_temperature
198 attribute: last_triggered
199 id: Automation Start
200 for:
201 hours: 0
202 minutes: 0
203 seconds: 0
204 - platform: state
205 entity_id:
206 - automation.vero_6_8
207 attribute: last_triggered
208 id: 6-8
209 - platform: state
210 entity_id:
211 - climate.climatisation
212 from: unavailable
213 to: heat
214 id: Unavailable
215 - platform: state
216 entity_id:
217 - automation.raise_temperature_end
218 attribute: last_triggered
219 id: Automation End
220 for:
221 hours: 0
222 minutes: 0
223 seconds: 0
224 condition: []
225 action:
226 - choose:
227 - conditions:
228 - condition: trigger
229 id:
230 - Automation Start
231 sequence:
232 - if:
233 - condition: or
234 conditions:
235 - condition: state
236 entity_id: climate.climatisation
237 state: unavailable
238 - condition: numeric_state
239 entity_id: climate.climatisation
240 below: 23
241 attribute: temperature
242 - condition: state
243 entity_id: input_boolean.raise_temperature_on
244 state: "off"
245 then:
246 - wait_for_trigger: []
247 timeout:
248 hours: 0
249 minutes: 5
250 seconds: 0
251 milliseconds: 0
252 continue_on_timeout: false
253 - service: automation.trigger
254 metadata: {}
255 data:
256 skip_condition: false
257 target:
258 entity_id: automation.raise_temperature
259 alias: Raise Temperature Start
260 - conditions:
261 - condition: trigger
262 id:
263 - 6-8
264 sequence: []
265 - conditions:
266 - condition: trigger
267 id:
268 - Automation End
269 sequence:
270 - if:
271 - condition: or
272 conditions:
273 - condition: state
274 entity_id: climate.climatisation
275 state: unavailable
276 - condition: numeric_state
277 entity_id: climate.climatisation
278 attribute: temperature
279 above: 22
280 - condition: state
281 entity_id: input_boolean.raise_temperature_on
282 state: "on"
283 then:
284 - wait_for_trigger: []
285 timeout:
286 hours: 0
287 minutes: 5
288 seconds: 0
289 milliseconds: 0
290 continue_on_timeout: false
291 - service: automation.trigger
292 metadata: {}
293 data:
294 skip_condition: true
295 target:
296 entity_id: automation.raise_temperature_end
297 alias: Raise Temperature End
298 mode: single
299 - id: "1712697364422"
300 alias: Test race automation1
301 description: ""
302 trigger:
303 - platform: state
304 entity_id:
305 - input_boolean.autotest
306 from: "on"
307 for:
308 hours: 0
309 minutes: 0
310 seconds: 5
311 condition: []
312 action:
313 - service: persistent_notification.create
314 metadata: {}
315 data:
316 message: Test race
317 mode: single
318 - id: "1712697386363"
319 alias: Test race automation 2
320 description: ""
321 trigger:
322 - platform: state
323 entity_id:
324 - input_boolean.autotest
325 from: "on"
326 condition: []
327 action:
328 - service: automation.turn_off
329 target:
330 entity_id: automation.test_race_automation1
331 data:
332 stop_actions: true
333 mode: single
334 - id: "1713478871367"
335 alias: zero wait
336 description: ""
337 trigger: []
338 action:
339 - wait_template: false
340 timeout:
341 minutes: 0
342 - service: notify.persistent_notification
343 data:
344 message: xyz
345 mode: single
346 - id: "1714133878248"
347 alias: fire toggle on binary_sensor.test_sensor off on 2
348 description: ""
349 trigger:
350 - platform: state
351 entity_id:
352 - binary_sensor.test_sensor
353 from: "off"
354 to: "on"
355 condition: []
356 action:
357 - service: script.fire_toggle
358 metadata: {}
359 data: {}
360 mode: single
361 - id: "1714134127583"
362 alias: fire toggle on binary_sensor.test_sensor off on 1
363 description: ""
364 trigger:
365 - platform: state
366 entity_id:
367 - binary_sensor.test_sensor
368 from: "off"
369 to: "on"
370 condition: []
371 action:
372 - service: script.fire_toggle
373 metadata: {}
374 data: {}
375 mode: single
376 - id: "1716239098767"
377 alias: New automation
378 description: ""
379 trigger:
380 - platform: template
381 value_template:
382 "{% if is_state(\"sun.sun\", \"above_horizon\") -%}\n {{ \"invalid\"
383 + 1 }}\n{%- else -%}\n false\n{%- endif %}\n"
384 condition: []
385 action: []
386 mode: single
387 - id: test_toggle_off
388 alias: test_toggle_off
389 description: ""
390 trigger:
391 - platform: state
392 entity_id:
393 - input_boolean.toggle_1
394 to: "on"
395 condition: []
396 action:
397 - service: input_boolean.turn_off
398 metadata: {}
399 data: {}
400 target:
401 entity_id:
402 - input_boolean.toggle_1
403 mode: single