-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomation.yaml
executable file
·177 lines (160 loc) · 4.28 KB
/
automation.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
### automation.yaml
- alias: Update notifications
trigger:
- platform: state
entity_id: updater.updater
action:
service: notify.pushbullet
data:
title: 'New Home Assistant Release'
message: "Home Assistant {{ states.updater.updater.state }} is now available."
## Dash Button
- alias: Turn On/Off Bedroom Lamp
hide_entity: True
trigger:
platform: event
event_type: dash_mentos
action:
service: homeassistant.toggle
entity_id: switch.aeotec_zw096_smart_switch_6_switch_2_0
- alias: Turn Porch Light On At Sunset
hide_entity: True
trigger:
platform: sun
event: sunset
action:
service: homeassistant.turn_on
entity_id: switch.ge_12722_onoff_relay_switch_switch_4_0
- alias: Turn Porch Light Off At Sunrise
hide_entity: True
trigger:
platform: sun
event: sunrise
action:
service: homeassistant.turn_off
entity_id: switch.ge_12722_onoff_relay_switch_switch_4_0
# - alias: Turn Christmas Lights On At Sunset
# hide_entity: True
# trigger:
# platform: sun
# event: sunset
# action:
# service: homeassistant.turn_on
# entity_id: switch.ge_12720_outdoor_smart_switch_switch_12_0
# - alias: Turn Christmas Lights Off At Midnight
# hide_entity: True
# trigger:
# platform: time
# after: '23:59:00'
# action:
# service: homeassistant.turn_off
# entity_id: switch.ge_12720_outdoor_smart_switch_switch_12_0
- alias: Turn Guest Room Lamp on at 5 PM
trigger:
platform: time
after: '17:00:00'
action:
service: homeassistant.turn_on
entity_id: light.hue_color_lamp_3
- alias: Turn Guest Room Lamp off at 8 AM
trigger:
platform: time
after: '08:00:00'
action:
service: homeassistant.turn_off
entity_id: light.hue_color_lamp_3
- alias: Media Room Theater Lights - Adjust Brightness
hide_entity: True
trigger:
platform: state
entity_id: input_slider.media_room_brightness
action:
- service: light.turn_on
data_template:
entity_id: light.ge_12724_3way_dimmer_switch_level_11_0
brightness: '{{ trigger.to_state.state | int }}'
- alias: Bedroom Fan - Off
hide_entity: True
trigger:
platform: state
entity_id: input_select.fan_speed
to: "Off"
action:
service: light.turn_off
entity_id: light.ge_12730_fan_control_switch_level_6_0
- alias: Bedroom Fan - High
hide_entity: True
trigger:
platform: state
entity_id: input_select.fan_speed
to: "High"
action:
service: light.turn_on
entity_id: light.ge_12730_fan_control_switch_level_6_0
data:
brightness: 254
- alias: Bedroom Fan - Medium
hide_entity: True
trigger:
platform: state
entity_id: input_select.fan_speed
to: "Medium"
action:
service: light.turn_on
entity_id: light.ge_12730_fan_control_switch_level_6_0
data:
brightness: 150
- alias: Bedroom Fan - Low
hide_entity: True
trigger:
platform: state
entity_id: input_select.fan_speed
to: "Low"
action:
service: light.turn_on
entity_id: light.ge_12730_fan_control_switch_level_6_0
data:
brightness: 30
- alias: Turn theater lights to 80 on motion if no activity
trigger:
platform: state
entity_id: sensor.aeotec_zw100_multisensor_6_burglar_9_10
from: '0'
to: '8'
condition:
condition: state
entity_id: sensor.media_room
state: 'PowerOff'
action:
service: homeassistant.turn_on
entity_id: script.timed_theater_lights
- alias: Alert on high Media Room temperature
trigger:
platform: numeric_state
entity_id: sensor.aeotec_zw100_multisensor_6_temperature_9_1
above: 80.0
action:
service: notify.pushbullet
data:
title: 'Temperature alert'
message: "Media Room Temperature above 80!"
- alias: Heal ZWave Nightly
hide_entity: True
trigger:
platform: time
after: '2:31:00'
action:
service: zwave.heal_network
- alias: Backup HA Configuration Files
trigger:
platform: time
hours: 1
minutes: 1
seconds: 0
action:
- service: shell_command.backup_configuration
- service: shell_command.backup_group
- service: shell_command.backup_customize
- service: shell_command.backup_known_devices
- service: shell_command.backup_automation
- service: shell_command.backup_device_tracker