Skip to content

Commit

Permalink
one more scene
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreiter committed Oct 22, 2023
1 parent 1174959 commit 96e03b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
}
Expand Down

0 comments on commit 96e03b0

Please sign in to comment.