ColorExtract a picture and apply colors to different lights to set a scene (for my Bar liquor)

Hello everyone !
I am trying to create interesting scenes (based on pictures) to my Home liquor bar (see left photo bellow).


I have already integrated 5 lights that fully support any colors attribution via home assistant services:

  • Left bar bulb
  • Right bar bulb
  • Bar Menu leds
  • Bar logo leds
  • Liquors leds

I would like to:

  1. use a generic picture (taken from my phone or from the internet), subdivise this picture in 5 zones that more or less correspond to how the lights of my bar are installed.
  2. extract the average color of each specific zone with ColorExtractor service from HASS
  3. Apply the average colors to each light of each zone as show on the picture above.

Does anyone know if such a project has already been done and if it’s not too hard? I’m not a developer but I can easily understand how to use different plugins, custom components if someone has a first approach to my project?

The final idea is too create a mood in my bar that is based on the mood I had from a travel experiences like “drinking a cocktail with a sunset on the beach:slight_smile: :beach_umbrella: :cocktail:

Thanks in advance for any help anyone could provide for this complicated project !

How The Zone Light Insted Of This Area???
HOW???