-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
110 lines (110 loc) · 2.95 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
- id: homekit-start
alias: Start HomeKit
trigger:
- platform: homeassistant
event: start
action:
- delay: 00:05
- service: homekit.start
- id: '1593179110548'
alias: Turn on Driveway Lights in the Morning
description: ''
trigger:
- at: 05:30:00
platform: time
condition: []
action:
- device_id: d309cf7d4b5d4657b382339993b56c16
domain: switch
entity_id: switch.jasco_products_14291_in_wall_smart_switch_switch_2
type: turn_on
- id: '1593179256035'
alias: Turn Off the Driveway Lights at Night
description: ''
trigger:
- at: '21:00'
platform: time
condition: []
action:
- device_id: d309cf7d4b5d4657b382339993b56c16
domain: switch
entity_id: switch.jasco_products_14291_in_wall_smart_switch_switch_2
type: turn_off
- id: '1593179381500'
alias: Turn off Driveway Lights at Sunrise
description: ''
trigger:
- event: sunrise
platform: sun
condition: []
action:
- device_id: d309cf7d4b5d4657b382339993b56c16
domain: switch
entity_id: switch.jasco_products_14291_in_wall_smart_switch_switch_2
type: turn_off
- id: '1593179451964'
alias: Turn on Driveway Lights at Sunset
description: ''
trigger:
- event: sunset
platform: sun
condition: []
action:
- device_id: d309cf7d4b5d4657b382339993b56c16
domain: switch
entity_id: switch.jasco_products_14291_in_wall_smart_switch_switch_2
type: turn_on
- id: garagedoor-open
alias: 'Garage Entry Open'
trigger:
platform: state
entity_id: sensor.garage_entry_door
from: 'closed'
to: 'open'
action:
- service: notify.living_room_tv
data:
message: "Garage Entry Door is Open!"
- service: notify.alexa_media
data:
target:
- media_player.living_room_echo
data:
type: announce
message: '<voice name="Brian"><lang xml:lang="en-GB">Garage Entry Door has been opened.</lang></voice>'
- id: garagedoor-closed
alias: 'Garage Entry Closed'
trigger:
platform: state
entity_id: sensor.garage_entry_door
from: 'open'
to: 'closed'
action:
- service: notify.living_room_tv
data:
message: "Garage Entry Door is Closed!"
- service: notify.alexa_media
data:
target:
- media_player.living_room_echo
data:
type: announce
message: '<voice name="Brian"><lang xml:lang="en-GB">Garage Entry Door has been secured.</lang></voice>'
- id: drivewaymotion-state
alias: 'Driveway Motion State'
trigger:
platform: state
entity_id: sensor.driveway_sensor
from: 'closed'
to: 'open'
action:
- service: notify.living_room_tv
data:
message: "Motion Detected in Driveway!"
- service: notify.alexa_media
data:
target:
- media_player.living_room_echo
data:
type: announce
message: '<voice name="Brian"><lang xml:lang="en-GB">I am terribly sorry to interrupt, but motion detected in the driveway sir.</lang></voice>'