mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-16 08:44:03 +02:00
allowed for sleep_brightness to be set to 0
Signed-off-by: jaynis <kranz.jannis@googlemail.com>
This commit is contained in:
parent
6cebe14a69
commit
8e50415136
6 changed files with 9 additions and 9 deletions
|
|
@ -120,7 +120,7 @@ The YAML and frontend configuration methods support all of the options listed be
|
|||
| `min_color_temp` | Warmest color temperature in Kelvin. 🔥 | `2000` | `int` 1000-10000 |
|
||||
| `max_color_temp` | Coldest color temperature in Kelvin. ❄️ | `5500` | `int` 1000-10000 |
|
||||
| `prefer_rgb_color` | Whether to prefer RGB color adjustment over light color temperature when possible. 🌈 | `False` | `bool` |
|
||||
| `sleep_brightness` | Brightness percentage of lights in sleep mode. 😴 | `1` | `int` 1-100 |
|
||||
| `sleep_brightness` | Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴 | `1` | `int` 0-100 |
|
||||
| `sleep_rgb_or_color_temp` | Use either `"rgb_color"` or `"color_temp"` in sleep mode. 🌙 | `color_temp` | one of `['color_temp', 'rgb_color']` |
|
||||
| `sleep_color_temp` | Color temperature in sleep mode (used when `sleep_rgb_or_color_temp` is `color_temp`) in Kelvin. 😴 | `1000` | `int` 1000-10000 |
|
||||
| `sleep_rgb_color` | RGB color in sleep mode (used when `sleep_rgb_or_color_temp` is "rgb_color"). 🌈 | `[255, 56, 0]` | RGB color |
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ DOCS[CONF_SEPARATE_TURN_ON_COMMANDS] = (
|
|||
)
|
||||
|
||||
CONF_SLEEP_BRIGHTNESS, DEFAULT_SLEEP_BRIGHTNESS = "sleep_brightness", 1
|
||||
DOCS[CONF_SLEEP_BRIGHTNESS] = "Brightness percentage of lights in sleep mode. 😴"
|
||||
DOCS[CONF_SLEEP_BRIGHTNESS] = "Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴"
|
||||
|
||||
CONF_SLEEP_COLOR_TEMP, DEFAULT_SLEEP_COLOR_TEMP = "sleep_color_temp", 1000
|
||||
DOCS[CONF_SLEEP_COLOR_TEMP] = (
|
||||
|
|
@ -330,7 +330,7 @@ VALIDATION_TUPLES: list[tuple[str, Any, Any]] = [
|
|||
(CONF_MIN_COLOR_TEMP, DEFAULT_MIN_COLOR_TEMP, int_between(1000, 10000)),
|
||||
(CONF_MAX_COLOR_TEMP, DEFAULT_MAX_COLOR_TEMP, int_between(1000, 10000)),
|
||||
(CONF_PREFER_RGB_COLOR, DEFAULT_PREFER_RGB_COLOR, bool),
|
||||
(CONF_SLEEP_BRIGHTNESS, DEFAULT_SLEEP_BRIGHTNESS, int_between(1, 100)),
|
||||
(CONF_SLEEP_BRIGHTNESS, DEFAULT_SLEEP_BRIGHTNESS, int_between(0, 100)),
|
||||
(
|
||||
CONF_SLEEP_RGB_OR_COLOR_TEMP,
|
||||
DEFAULT_SLEEP_RGB_OR_COLOR_TEMP,
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ change_switch_settings:
|
|||
selector:
|
||||
boolean: null
|
||||
sleep_brightness:
|
||||
description: Brightness percentage of lights in sleep mode. 😴
|
||||
description: Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴
|
||||
required: false
|
||||
example: 1
|
||||
selector:
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
"interval": "Frequency to adapt the lights, in seconds. 🔄",
|
||||
"transition": "Duration of transition when lights change, in seconds. 🕑",
|
||||
"initial_transition": "Duration of the first transition when lights turn from `off` to `on` in seconds. ⏲️",
|
||||
"sleep_brightness": "Brightness percentage of lights in sleep mode. 😴",
|
||||
"sleep_brightness": "Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴",
|
||||
"sleep_rgb_or_color_temp": "Use either `\"rgb_color\"` or `\"color_temp\"` in sleep mode. 🌙",
|
||||
"sleep_color_temp": "Color temperature in sleep mode (used when `sleep_rgb_or_color_temp` is `color_temp`) in Kelvin. 😴",
|
||||
"sleep_rgb_color": "RGB color in sleep mode (used when `sleep_rgb_or_color_temp` is \"rgb_color\"). 🌈",
|
||||
|
|
@ -212,7 +212,7 @@
|
|||
"name": "send_split_delay"
|
||||
},
|
||||
"sleep_brightness": {
|
||||
"description": "Brightness percentage of lights in sleep mode. 😴",
|
||||
"description": "Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴",
|
||||
"name": "sleep_brightness"
|
||||
},
|
||||
"sleep_rgb_or_color_temp": {
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
"interval": "Frequency to adapt the lights, in seconds. 🔄",
|
||||
"transition": "Duration of transition when lights change, in seconds. 🕑",
|
||||
"initial_transition": "Duration of the first transition when lights turn from `off` to `on` in seconds. ⏲️",
|
||||
"sleep_brightness": "Brightness percentage of lights in sleep mode. 😴",
|
||||
"sleep_brightness": "Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴",
|
||||
"sleep_rgb_or_color_temp": "Use either `\"rgb_color\"` or `\"color_temp\"` in sleep mode. 🌙",
|
||||
"sleep_color_temp": "Color temperature in sleep mode (used when `sleep_rgb_or_color_temp` is `color_temp`) in Kelvin. 😴",
|
||||
"sleep_rgb_color": "RGB color in sleep mode (used when `sleep_rgb_or_color_temp` is \"rgb_color\"). 🌈",
|
||||
|
|
@ -213,7 +213,7 @@
|
|||
"name": "send_split_delay"
|
||||
},
|
||||
"sleep_brightness": {
|
||||
"description": "Brightness percentage of lights in sleep mode. 😴",
|
||||
"description": "Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴",
|
||||
"name": "sleep_brightness"
|
||||
},
|
||||
"sleep_rgb_or_color_temp": {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ All configuration options are listed below with their default values. These opti
|
|||
| `min_color_temp` | Warmest color temperature in Kelvin. 🔥 | `2000` | `int` 1000-10000 |
|
||||
| `max_color_temp` | Coldest color temperature in Kelvin. ❄️ | `5500` | `int` 1000-10000 |
|
||||
| `prefer_rgb_color` | Whether to prefer RGB color adjustment over light color temperature when possible. 🌈 | `False` | `bool` |
|
||||
| `sleep_brightness` | Brightness percentage of lights in sleep mode. 😴 | `1` | `int` 1-100 |
|
||||
| `sleep_brightness` | Brightness percentage of lights in sleep mode. Set to 0 to prevent lights from turning on. 😴 | `1` | `int` 0-100 |
|
||||
| `sleep_rgb_or_color_temp` | Use either `"rgb_color"` or `"color_temp"` in sleep mode. 🌙 | `color_temp` | one of `['color_temp', 'rgb_color']` |
|
||||
| `sleep_color_temp` | Color temperature in sleep mode (used when `sleep_rgb_or_color_temp` is `color_temp`) in Kelvin. 😴 | `1000` | `int` 1000-10000 |
|
||||
| `sleep_rgb_color` | RGB color in sleep mode (used when `sleep_rgb_or_color_temp` is "rgb_color"). 🌈 | `[255, 56, 0]` | RGB color |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue