You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expand all lines: custom_components/adaptive_lighting/services.yaml
+85-83
Original file line number
Diff line number
Diff line change
@@ -2,249 +2,251 @@ apply:
2
2
description: Applies the current Adaptive Lighting settings to lights.
3
3
fields:
4
4
entity_id:
5
-
description: "Entity ID of the switch. \U0001F4DD"
5
+
description: entity_id of the Adaptive Lighting switch. If not specified, the current Adaptive Lighting switch will be used.
6
6
selector:
7
7
entity:
8
8
integration: adaptive_lighting
9
9
domain: switch
10
10
multiple: false
11
11
lights:
12
-
description: "List of light entities to be controlled by Adaptive Lighting (may be empty). \U0001F31F"
12
+
description: entity_id(s) of lights, if not specified, all lights in the switch are selected.
13
13
selector:
14
14
entity:
15
15
domain: light
16
16
multiple: true
17
17
transition:
18
-
description: "Duration of transition when lights change, in seconds. \U0001F551"
18
+
description: Transition of the lights.
19
19
example: 10
20
20
selector:
21
-
text:null
21
+
text:
22
22
adapt_brightness:
23
-
description: "Whether to adapt the brightness of the light. \U0001F31E"
23
+
description: "Adapt the 'brightness', default: true"
24
24
example: true
25
25
selector:
26
-
boolean:null
26
+
boolean:
27
27
adapt_color:
28
-
description: "Whether to adapt the color of the light. \U0001F308"
28
+
description: "Adapt the color_temp/color_rgb, default: true"
29
29
example: true
30
30
selector:
31
-
boolean:null
31
+
boolean:
32
32
prefer_rgb_color:
33
-
description: "Use RGB color adjustment instead of native light color temperature. \U0001F308"
33
+
description: "Prefer to use color_rgb over color_temp if possible, default: false"
34
34
example: false
35
35
selector:
36
-
boolean:null
36
+
boolean:
37
37
turn_on_lights:
38
-
description: "Whether to turn on lights if they are off. \U0001F506"
38
+
description: "Turn on the lights that are off, default: false"
39
39
example: false
40
40
selector:
41
-
boolean: null
41
+
boolean:
42
+
42
43
set_manual_control:
43
44
description: Mark whether a light is 'manually controlled'.
44
45
fields:
45
46
entity_id:
46
-
description: "Entity ID of the switch. \U0001F4DD"
47
+
description: entity_id of the Adaptive Lighting switch. If not specified, the current Adaptive Lighting switch will be used.
47
48
selector:
48
49
entity:
49
50
integration: adaptive_lighting
50
51
domain: switch
51
52
multiple: false
52
53
lights:
53
-
description: "List of light entities to be controlled by Adaptive Lighting (may be empty). \U0001F31F"
54
+
description: entity_id(s) of lights, if not specified, all lights in the switch are selected.
54
55
selector:
55
56
entity:
56
57
domain: light
57
58
multiple: true
58
59
manual_control:
59
-
description: "Whether to manually control the lights. \U0001F512"
60
+
description: "Whether to add ('true') or remove ('false') the light from the 'manual_control' list, default: true"
60
61
example: true
61
62
default: true
62
63
selector:
63
-
boolean: null
64
+
boolean:
65
+
64
66
change_switch_settings:
65
-
description: Change any settings you'd like in the switch. All options here are the same as in the config flow.
67
+
description: "Change any settings you'd like in the switch. All options here are the same as in the config flow."
66
68
fields:
67
69
entity_id:
68
-
description: "Entity ID of the switch.\U0001F4DD"
70
+
description: "entity_id of the Adaptive Lighting switch."
69
71
required: true
70
72
selector:
71
73
entity:
72
74
domain: switch
73
75
use_defaults:
74
-
description: "Whether to use default settings for the switches. \u2699\uFE0F"
75
-
example: current
76
+
description: "(default: 'current' for current settings) You can set this to 'factory', 'configuration', or 'current' to reset the variables not being set with this service call. 'current' leaves them as is, 'configuration' resets to whatever already initializes at startup, 'factory' resets to the default values listed in the documentation."
77
+
example: "current"
76
78
required: false
77
-
default: current
79
+
default: "current"
78
80
selector:
79
81
select:
80
82
options:
81
-
- current
82
-
- configuration
83
-
- factory
83
+
- "current"
84
+
- "configuration"
85
+
- "factory"
84
86
include_config_in_attributes:
85
-
description: "Show all options as attributes on the switch in Home Assistant when set to `true`. \U0001F4DD"
87
+
description: "include_config_in_attributes: All config options will be listed as attributes under the adaptive-lighting switch this integration creates. (default: false)"
86
88
required: false
87
89
selector:
88
-
boolean:null
90
+
boolean:
89
91
turn_on_lights:
90
-
description: "Whether to turn on lights if they are off. \U0001F506"
92
+
description: "Turn on the lights that are off, default: false"
91
93
example: false
92
94
required: false
93
95
selector:
94
-
boolean:null
96
+
boolean:
95
97
initial_transition:
96
-
description: "Duration of the first transition when lights turn from `off` to `on` in seconds. \u23F2\uFE0F"
98
+
description: "initial_transition: When lights turn 'off' to 'on'. (seconds)"
97
99
example: 1
98
100
required: false
99
101
selector:
100
-
text:null
102
+
text:
101
103
sleep_transition:
102
-
description: "Duration of transition when 'sleep mode' is toggled in seconds. \U0001F634"
104
+
description: "sleep_transition: When 'sleep_state' changes. (seconds)"
description: "min_brightness: Lowest brightness of lights during a cycle. (%)"
121
123
required: false
122
124
example: 1
123
125
selector:
124
-
text:null
126
+
text:
125
127
min_color_temp:
126
-
description: "Warmest color temperature in Kelvin. \U0001F525"
128
+
description: "min_color_temp, Warmest hue of the color temperature cycle. (Kelvin)"
127
129
required: false
128
130
example: 2000
129
131
selector:
130
-
text:null
132
+
text:
131
133
only_once:
132
-
description: "Adapt lights only when they are turned on (`true`) or keep adapting them (`false`). \U0001F504"
134
+
description: "only_once: Only adapt the lights when turning them on."
133
135
example: false
134
136
required: false
135
137
selector:
136
-
boolean:null
138
+
boolean:
137
139
prefer_rgb_color:
138
-
description: "Use RGB color adjustment instead of native light color temperature. \U0001F308"
140
+
description: "prefer_rgb_color: Use 'rgb_color' rather than 'color_temp' when possible."
139
141
required: false
140
142
example: false
141
143
selector:
142
-
boolean:null
144
+
boolean:
143
145
separate_turn_on_commands:
144
-
description: "Use separate `light.turn_on` calls for color and brightness, needed for some light types. \U0001F500"
146
+
description: "separate_turn_on_commands: Separate the commands for each attribute (color, brightness, etc.) in 'light.turn_on' (required for some lights)."
145
147
required: false
146
148
example: false
147
149
selector:
148
-
boolean:null
150
+
boolean:
149
151
send_split_delay:
150
-
description: "Wait time (milliseconds) between commands when using `separate_turn_on_commands`. Helps ensure correct handling. \u23F2\uFE0F"
152
+
description: "send_split_delay: wait between commands (milliseconds), when separate_turn_on_commands is used. May ensure that both commands are handled by the bulb correctly."
151
153
required: false
152
154
example: 0
153
155
selector:
154
-
boolean:null
156
+
boolean:
155
157
sleep_brightness:
156
-
description: "Brightness percentage of lights in sleep mode. \U0001F634"
158
+
description: "sleep_brightness, Brightness setting for Sleep Mode. (%)"
157
159
required: false
158
160
example: 1
159
161
selector:
160
-
text:null
162
+
text:
161
163
sleep_rgb_or_color_temp:
162
-
description: "Use either `'rgb_color'` or `'color_temp'` in sleep mode. \U0001F319"
164
+
description: "sleep_rgb_or_color_temp, use 'rgb_color' or 'color_temp'"
163
165
required: false
164
-
example: color_temp
166
+
example: "color_temp"
165
167
selector:
166
168
select:
167
169
options:
168
-
- rgb_color
169
-
- color_temp
170
+
- "rgb_color"
171
+
- "color_temp"
170
172
sleep_rgb_color:
171
-
description: "RGB color in sleep mode (used when `sleep_rgb_or_color_temp` is 'rgb_color'). \U0001F308"
173
+
description: "sleep_rgb_color, in RGB"
172
174
required: false
173
175
selector:
174
-
color_rgb:null
176
+
color_rgb:
175
177
sleep_color_temp:
176
-
description: "Color temperature in sleep mode (used when `sleep_rgb_or_color_temp` is `color_temp`) in Kelvin. \U0001F634"
178
+
description: "sleep_color_temp: Color temperature setting for Sleep Mode. (Kelvin)"
177
179
required: false
178
180
example: 1000
179
181
selector:
180
-
text:null
182
+
text:
181
183
sunrise_offset:
182
-
description: "Adjust sunrise time with a positive or negative offset in seconds. \u23F0"
184
+
description: sunrise_offset, in +/- seconds (integer)
183
185
required: false
184
186
example: 0
185
187
selector:
186
188
number:
187
189
min: 0
188
190
max: 86300
189
191
sunrise_time:
190
-
description: "Set a fixed time (HH:MM:SS) for sunrise. \U0001F305"
192
+
description: sunrise_time, in 'HH:MM:SS' format (if 'None', it uses the actual sunrise time at your location)
191
193
required: false
192
-
example: ''
194
+
example: ""
193
195
selector:
194
-
time:null
196
+
time:
195
197
sunset_offset:
196
-
description: "Adjust sunset time with a positive or negative offset in seconds. \u23F0"
198
+
description: sunset_offset, in +/- seconds (integer)
197
199
required: false
198
-
example: ''
200
+
example: ""
199
201
selector:
200
202
number:
201
203
min: 0
202
204
max: 86300
203
205
sunset_time:
204
-
description: "Set a fixed time (HH:MM:SS) for sunset. \U0001F307"
205
-
example: ''
206
+
description: sunset_time, in 'HH:MM:SS' format (if 'None', it uses the actual sunset time at your location)
207
+
example: ""
206
208
required: false
207
209
selector:
208
-
time:null
210
+
time:
209
211
max_sunrise_time:
210
-
description: "Set the latest virtual sunrise time (HH:MM:SS), allowing for earlier real sunrises. \U0001F305"
211
-
example: ''
212
+
description: "max_sunrise_time: Manual override of the maximum sunrise time, if 'None', it uses the actual sunrise time at your location (HH:MM:SS)"
213
+
example: ""
212
214
required: false
213
215
selector:
214
-
time:null
216
+
time:
215
217
min_sunset_time:
216
-
description: "Set the earliest virtual sunset time (HH:MM:SS), allowing for later real sunsets. \U0001F307"
217
-
example: ''
218
+
description: "min_sunset_time: Manual override of the minimum sunset time, if 'None', it uses the actual sunset time at your location (HH:MM:SS)"
219
+
example: ""
218
220
required: false
219
221
selector:
220
-
time:null
222
+
time:
221
223
take_over_control:
222
-
description: "Disable Adaptive Lighting if another source calls `light.turn_on` while lights are on and being adapted. Note that this calls `homeassistant.update_entity` every `interval`! \U0001F512"
224
+
description: "take_over_control: If anything but Adaptive Lighting calls 'light.turn_on' when a light is already on, stop adapting that light until it (or the switch) toggles off -> on."
223
225
required: false
224
226
example: true
225
227
selector:
226
-
boolean:null
228
+
boolean:
227
229
detect_non_ha_changes:
228
-
description: "Detect non-`light.turn_on` state changes and stop adapting lights. Requires `take_over_control`. \U0001F575\uFE0F"
230
+
description: "detect_non_ha_changes: detects all >10% changes made to the lights (also outside of HA), requires 'take_over_control' to be enabled (calls 'homeassistant.update_entity' every 'interval'!)"
229
231
required: false
230
232
example: false
231
233
selector:
232
-
boolean:null
234
+
boolean:
233
235
transition:
234
-
description: "Duration of transition when lights change, in seconds. \U0001F551"
236
+
description: "Transition time when applying a change to the lights (seconds)"
235
237
required: false
236
238
example: 45
237
239
selector:
238
-
text:null
240
+
text:
239
241
adapt_delay:
240
-
description: "Wait time (seconds) between light turn on and Adaptive Lighting applying changes. Helps avoid flickering.\u23F2\uFE0F"
242
+
description: "adapt_delay: wait time between light turn on (seconds), and Adaptive Lights applying changes to the light state. May avoid flickering."
241
243
required: false
242
244
example: 0
243
245
selector:
244
-
text:null
246
+
text:
245
247
autoreset_control_seconds:
246
-
description: "Automatically reset the manual control after a number of seconds. Set to 0 to disable. \u23F2\uFE0F"
248
+
description: "autoreset_control_seconds: wait time (seconds) before Adaptive Lighting resets `manual_control` status of any light (default: 0)"
0 commit comments