-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlights.yaml
More file actions
133 lines (119 loc) · 3 KB
/
Copy pathlights.yaml
File metadata and controls
133 lines (119 loc) · 3 KB
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
#Turn on the living room lights 30min before sunrise
- id: "938bdd66-e626-48b0-9b75-0ab2c78c2daf"
alias: "Sun up living room lights"
trigger:
platform: sun
event: sunrise
offset: "-00:30:00"
action:
service: homeassistant.turn_on
data:
entity_id: group.livingroom
#Turn on the inside lights 1HR before sunset
- id: "073111c6-5e98-419f-9855-c5f9bb25dd15"
alias: "Sun down inside lights"
trigger:
platform: sun
event: sunset
offset: "-01:00:00"
action:
service: homeassistant.turn_on
data:
entity_id:
- group.livingroom
- switch.bedroom_lamp
#Turn on Inside Lights When I get Home
- id: "7e4bbb55-1829-45e1-be16-6cb091a565b5"
alias: "Inside Lights when Home"
initial_state: true
trigger:
platform: state
entity_id: person.greg
condition:
condition: and
conditions:
- condition: time
after: '08:00:00'
before: '17:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: or
conditions:
- condition: state
entity_id: person.greg
state: 'home'
- condition: state
entity_id: person.sara
state: 'home'
action:
- service: homeassistant.turn_on #Turn on the Inside Lights Group
data:
entity_id: group.inside_lights
#Turn off Inside Lights when no one has been home for 20 min
- id: "fe2ca6d3-a4b9-4c5c-8bbf-96683b5c9666"
alias: 'Lights off No One Home'
initial_state: true
trigger:
- platform: template
value_template: >-
{{ not is_state('person.greg','home') and
not is_state('person.sara','home') }}
for:
minutes: 20
condition:
- condition: time
after: '08:00:00'
before: '19:00:00'
action:
- service: homeassistant.turn_off #Turn off the Inside Lights Group
data:
entity_id: group.inside_lights
- id: "f4244633-dbcb-455b-bfa2-12268c3da8c1"
alias: 'Light Light'
initial_state: true
trigger:
platform: time
at : '23:33:00'
action:
- service: homeassistant.turn_off
data:
entity_id:
- group.inside_lights
- switch.garage_lights
- id: "578fcb1c-0257-4f35-9b2f-d480f1078b96"
alias: 'Garage On - Sunrise'
initial_state: true
trigger:
platform: sun
event: sunrise
offset: "-01:00:00"
action:
service: switch.turn_on
data:
entity_id: switch.garage_lights
- id: "b09edd64-38e4-4eef-badf-86b928b72f5c"
alias: 'Garage OFF - Sunrise'
initial_state: true
trigger:
platform: sun
event: sunrise
offset: "+01:30:00"
action:
service: switch.turn_off
data:
entity_id: switch.garage_lights
- id: "eabe53e7-7237-4870-83db-6760cd7633cb"
alias: 'Garage On - Sunset'
initial_state: true
trigger:
platform: sun
event: sunset
offset: "-00:30:00"
action:
service: switch.turn_on
data:
entity_id: switch.garage_lights