Spotify Album Art Integration in Home Assistant

Hey everyone! I hope you’re all having a great day. I’ve been working on a fun project where I use Python to download album art from Spotify and then adjust my Tuya RGB lamps to match the dominant color of the album cover. It’s been a fun way to tie my music listening experience into my home automation setup.

Now, I’m curious if there’s a way to achieve something similar directly within Home Assistant. I’d love to access the album image that Spotify provides in Home Assistant, process it to find the dominant color, and then adjust my lights accordingly. Maybe there’s a built-in integration or a clever way to script this without needing an external Python script.

I’ve looked into the Spotify integration in Home Assistant, and I know it provides some entity data, but I’m not sure if album images are accessible through the API. If anyone has experience with custom scripts or integrations that handle image processing within HA, I’d love to hear your thoughts!

Would love to know if this is possible and how others might approach it. Thanks in advance for any insights!