diff --git a/README.md b/README.md index e70cf95..d6409b5 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,21 @@ It basically supports the following things: It can be found in `script.yaml`. +## Setting a scene +Setting a scene with this script is done via a service call: + +```yaml +service: script.light_hue_scene +data: + scene: Savanna Sunset + onlyonlights: false + skipgroups: true + target: + area_id: wohnzimmer +``` + +The exact service name depends on how you name the script. + # 2. The colors The next question: How to get the colors? The Hue app [shows them in small circles](gfx/circles.jpeg), but I thought there needs to be a better way to extract the colors. Since I still have the bridge running, I applied the scene to a number of lights, and extracted the color info via Home Asssistant with this template script: diff --git a/script.yaml b/script.yaml index 3b5cb63..c8c156d 100644 --- a/script.yaml +++ b/script.yaml @@ -116,6 +116,9 @@ sequence: "Ein bunter Garten": { "colors": [[0.137, 0.053],[0.689, 0.307],[0.325093, 0.130816],[0.397, 0.161]] }, + "Color Palette #4557": { + "colors": [[0.0264,0.0368],[0.1369,0.2082],[0.6616,0.8396],[0.4481,0.2822],[0.1447,0.0799]] + }, "Random": { "colors": [] }