-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscripts.yaml
89 lines (81 loc) · 2.19 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
wake_up:
sequence:
- service: alarm_control_panel.alarm_disarm
data:
entity_id: alarm_control_panel.alarm
- condition: template
value_template: "{{ state_attr('sun.sun', 'elevation') < 2 }}"
- service: scene.turn_on
data:
entity_id: scene.wake_up
good_night:
sequence:
- service: alarm_control_panel.alarm_arm_home
data:
entity_id: alarm_control_panel.alarm
away:
sequence:
- service: alarm_control_panel.alarm_arm_away
data:
entity_id: alarm_control_panel.alarm
dinner_lights:
sequence:
- service: scene.turn_on
data:
entity_id: scene.dinner_lights
- condition: template
value_template: "{{ state_attr('sun.sun', 'elevation') < 4 }}"
- service: scene.turn_on
data:
entity_id: scene.dinner_lights_more
mood_lights:
sequence:
- service: scene.turn_on
data:
entity_id: scene.mood_lights
hvac_disable:
sequence:
- if:
condition: state
entity_id: climate.home
state: "heat"
then:
service: climate.set_temperature
data:
entity_id: climate.home
temperature: !secret climate_off_heat
else:
service: climate.set_temperature
data:
entity_id: climate.home
temperature: !secret climate_off_cool
hvac_resume:
sequence:
- service: button.press
data:
entity_id: button.home_clear_hold
let_dog_out:
mode: single
sequence:
# Disable alarm voice and device updates
- service: automation.turn_off
data:
entity_id:
- automation.alarm_disarmed_mode
- automation.alarm_home_mode
# Turn off alarm
- service: alarm_control_panel.alarm_disarm
data:
entity_id: alarm_control_panel.alarm
# Turn back on alarm after specified time
- delay: "00:30:00"
- service: alarm_control_panel.alarm_arm_home
data:
entity_id: alarm_control_panel.alarm
# Turn back on voice and device updates for alarm
- delay: "00:01:00"
- service: automation.turn_on
data:
entity_id:
- automation.alarm_disarmed_mode
- automation.alarm_home_mode