diff --git a/CHANGELOG.md b/CHANGELOG.md index fabee79..2088a8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog - + +## [0.12.1] - 2024-11-02 + +### Fixed +- **Scene Sync**: Fixed an issue where scene synchronization failed to handle interpolations across days, causing lights to sync as off (#16). + +### Added +- **Enhanced CT Support**: Enabled support for setting 1000 Kelvin as color temperature (CT) for color lights. Removed the InvalidColorTemperatureValue error; now, if the specified CT is outside the supported range, it automatically adjusts to the nearest valid value (#15). + ## [0.12.0] - 2024-10-13 ### Added diff --git a/README.md b/README.md index 8da7636..184179c 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Each configuration line has three parts: - **Basic**: - **`bri`** (brightness): e.g., `bri:100%` - - **`ct`** (color temperature) [``6500``-``2000``|``153``-``500``]: e.g., `ct:6500`, `ct:153` + - **`ct`** (color temperature) [``6500``-``1000``|``153``-``500``]: e.g., `ct:6500`, `ct:153` - **`on`** (on/off state): e.g., `on:true` - **`days`** (specific days of the week): e.g., `days:Mo-Fr`, `days:Tu,We` - **Color**: diff --git a/docs/light_configuration.md b/docs/light_configuration.md index 231596c..ff46185 100644 --- a/docs/light_configuration.md +++ b/docs/light_configuration.md @@ -103,7 +103,7 @@ Specify properties to control the state of your lights during the given interval - ``bri``: Modifies the **brightness** of the light: [``1``-``254``] or [``1%``-``100%``]. From dim to bright. -- ``ct``: Modifies the **color temperature** of the light, either in [Kelvin](https://en.wikipedia.org/wiki/Color_temperature) [``6500``-``2000``] or [Mired](https://en.wikipedia.org/wiki/Mired) [``153``-``500``], from cool to warm white. The supported range may vary for older light bulb models. Hue Scheduler checks at startup if the given color temperature is supported by the light, throwing an error if not. +- ``ct``: Modifies the **color temperature** of the light, either in [Kelvin](https://en.wikipedia.org/wiki/Color_temperature) [``6500``-``1000``] or [Mired](https://en.wikipedia.org/wiki/Mired) [``153``-``500``], from cool to warm white. The supported range may vary for older light bulb models. Hue Scheduler checks at startup if the given color temperature is supported by the light, automatically adjusting it to the nearest valid value if not. Note: Color lights are the only ones supporting a Kelvin value lower than 2000. - ``on``: Modifies the **on state** of the light: [``true``|``false``]. Hue Scheduler does not modify a light's on state unless explicitly specified. If a light is off or unreachable, Hue Scheduler waits until the light is turned on or reachable again. diff --git a/pom.xml b/pom.xml index 9b81028..d7e4d71 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ at.sv.hue hue-scheduler - 0.13.0-SNAPSHOT + 0.12.1 scm:git:git@github.com:stefanvictora/hue-scheduler.git diff --git a/src/main/java/at/sv/hue/HueScheduler.java b/src/main/java/at/sv/hue/HueScheduler.java index 5122512..828323a 100644 --- a/src/main/java/at/sv/hue/HueScheduler.java +++ b/src/main/java/at/sv/hue/HueScheduler.java @@ -52,7 +52,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -@Command(name = "HueScheduler", version = "0.13.0", mixinStandardHelpOptions = true, sortOptions = false) +@Command(name = "HueScheduler", version = "0.12.1", mixinStandardHelpOptions = true, sortOptions = false) public final class HueScheduler implements Runnable { private static final Logger LOG = LoggerFactory.getLogger(HueScheduler.class);