-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscripts.yaml
118 lines (112 loc) · 3.04 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
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
laundry_timer_start:
alias: Laundry timer
icon: mdi:washing-machine
sequence:
- action: timer.start
target:
entity_id: timer.laundry
dale_charge_phone:
alias: Dale charge phone
icon: mdi:sleep
sequence:
- condition:
- condition: state
entity_id: person.dale
state: "home"
- condition: time
after: "21:30:00"
before: "03:00:00"
- condition: state
entity_id: light.bedside_lights
state: "on"
- action: scene.turn_on
target:
entity_id: scene.goodnight
easy_wakeup:
alias: Easy wakeup
icon: mdi:sleep-off
sequence:
- action: light.turn_on
data:
brightness: 2
color_name: blue
target:
entity_id: light.bedroom_floor
- delay: 2
- action: light.turn_on
data:
transition: 600
brightness: 255
target:
entity_id: light.bedroom_floor
- action: spotcast.start
data:
device_name: Bedroom speaker
start_volume: 4
uri: spotify:playlist:37i9dQZF1DWV90ZWj21ygB
entity_id: media_player.bedroom_speaker
random_song: true
shuffle: true
adaptive_lights_on:
alias: Adaptive lights on
icon: mdi:theme-light-dark
sequence:
# First adapt the zigbee group with all lights (except wifi lights) to minimise zigbee traffic
# Separate brightness from colour because IKEA bulbs can't do smothe transition of both simultaneously
- action: light.turn_on
target:
entity_id: light.adaptive_lighting_home
data:
brightness_pct: "{{ state_attr('switch.adaptive_lighting_home', 'brightness_pct') }}"
transition: 5
- delay: 5
- action: light.turn_on
target:
entity_id: light.adaptive_lighting_home
data:
color_temp: "{{ state_attr('switch.adaptive_lighting_home', 'color_temp_mired') }}"
transition: 2
- delay: 2
- action: adaptive_lighting.set_manual_control
data:
manual_control: false
entity_id: switch.adaptive_lighting_home
- delay: 1
- action: adaptive_lighting.apply
data:
entity_id: switch.adaptive_lighting_home
turn_on_lights: true
transition: 5 # Needed for non-zigbee lights
relax_scene_on:
alias: Activate Relax scene
icon: mdi:glass-cocktail
sequence:
- action: scene.turn_on
data:
entity_id: scene.relax
transition: 3
- delay: 3
- action: adaptive_lighting.set_manual_control
data:
manual_control: true
lights:
- light.kitchen_lights
study_adaptive_lights_on:
alias: Study adaptive lights on
icon: mdi:theme-light-dark
sequence:
action: adaptive_lighting.apply
data:
entity_id: switch.adaptive_lighting_home
lights:
- light.study_lights
turn_on_lights: true
transition: 3
all_lights_off_delayed:
alias: All lights off after short delay
icon: mdi:lightbulb-group-off
sequence:
- delay: 3
- action: light.turn_off
target:
entity_id: all