-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautomations.yaml
More file actions
85 lines (79 loc) · 1.65 KB
/
automations.yaml
File metadata and controls
85 lines (79 loc) · 1.65 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
- id: 'wake_up'
alias: wake_up
trigger:
platform: template
value_template: '{{ states.sensor.time.state == states.sensor.alarm_time.state }}'
condition:
condition: state
entity_id: input_boolean.wake_up_switch
state: 'on'
action:
service: light.turn_on
entity_id: light.bedroom
data:
transition: 900
brightness: 255
- id: 'wake_up_kids'
alias: wake_up_kids
trigger:
platform: template
value_template: '{{ states.sensor.time.state == states.sensor.alarm_time_2.state }}'
condition:
condition: state
entity_id: input_boolean.wake_up_switch
state: 'on'
action:
service: light.turn_on
entity_id: light.kids
data:
transition: 900
brightness: 255
- id: 'bed_time'
alias: bed_time
trigger:
- at: '19:30'
platform: time
condition: []
action:
service: light.turn_on
entity_id: light.kids
data:
brightness: 1
- id: 'night_light'
alias: night_light
trigger:
- at: '23:00'
platform: time
condition: []
action:
service: light.turn_on
entity_id: light.livingroom
data:
brightness: 1
- id: 'lights_off'
alias: lights_off
trigger:
- at: '8:30'
platform: time
condition: []
action:
service: light.turn_off
entity_id: group.all_lights
- id: 'lights_on_flower'
alias: lights_on_flower
trigger:
- at: '10:00'
platform: time
condition: []
action:
service: switch.turn_on
entity_id: switch.plug_flower
- id: 'lights_off_flower'
alias: lights_off_flower
trigger:
- at: '16:00'
platform: time
condition: []
action:
service: switch.turn_off
entity_id: switch.plug_flower