-
Notifications
You must be signed in to change notification settings - Fork 1
/
secret_automations.yaml
75 lines (75 loc) · 1.89 KB
/
secret_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
- id: jon_leave
alias: Jon Leaving
trigger:
- entity_id: binary_sensor.jon_is_home
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: input_boolean.disable_auto_presence
state: 'off'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- entity_id: scene.all_off
service: scene.turn_on
- data:
code: !secret alarm_code
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_arm_away
initial_state: true
- action:
- data:
code: !secret alarm_code
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_disarm
alias: Jon Arriving Home
condition: []
id: '1515407554216'
trigger:
- entity_id: binary_sensor.jon_is_home
from: 'off'
platform: state
to: 'on'
- id: '1516741880050'
alias: Vacuum On with Alarm
trigger:
- entity_id: vacuum.xiaomi_vacuum_cleaner
platform: state
to: cleaning
condition:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
action:
- data:
code: !secret alarm_code
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_disarm
- delay: '5'
- data:
code: !secret alarm_code
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_arm_home
- id: '1516741880051'
alias: Vacuum Off with Alarm
trigger:
- entity_id: vacuum.xiaomi_vacuum_cleaner
platform: state
to: docked
condition:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_home
action:
- data:
code: !secret alarm_code
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_disarm
- delay: '5'
- data:
code: !secret alarm_code
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_arm_away