akx / illuminatrix

Fancy light schemes for your home
MIT License
6 stars 0 forks source link

Hue scene palette #8

Open Hypfer opened 11 months ago

Hypfer commented 11 months ago

Attached to this issue you will find an approximation of the color palettes provided by the 58 scenes that were part of the official hue app for android version 4.17.0. The palette data is not in the format used by this project but it should be pretty straightforward.

These were approximated using the colorthief library probably similar to as documented by this person: https://www.jeroendruwe.be/diy-hue-scenes-in-home-assistant-using-the-deconz-integration/

If you want to give that a go yourself, you can find the images in the apk in the version mentioned in \assets\flutter_assets\packages\preset_scenes\assets\scenes.

As said, these aren't the exact colors provided by the app as the app likely uses a different algorithm to create the 5 color palette, but they might be either a starting point or just good enough.

Either way, I just wanted to throw some pointers regarding that topic into the world. That's why this issue is a bit low-ish effort. Feel free to use or not use this information however you like :)

hue.json.txt

akx commented 11 months ago

Awesome, thank you!

akx commented 11 months ago

(I may or may not be down a rabbit hole trying to decompile the Hue app right now.)

Hypfer commented 11 months ago

It took a while, but we now not only have approximations but the actual colors set by the app:

https://gist.github.com/Hypfer/a0a8b5b9429831a7306ec4300077eaaa

akx commented 11 months ago

@Hypfer Ah, very nice. I'll update that in! As for reverse-engineering the apps, well, it's not that easy since they're written in Flutter, and the Dart decompilation scene isn't really there...