A Spicetify extension that dynamically sets your RGB lights to match the current album cover color using Home Assistant.
- Home Assistant set up and running with a valid HTTPS URL.
- Watch this video to learn about an easy way to setup remote access and a valid SSL certificate for your Home Assistant instance
- Spicetify installed on your Spotify client
- RGB-capable smart lights connected to Home Assistant
-
Create a new automation in Home Assistant
-
Add a webhook trigger
-
Copy the Webhook ID (you'll need this later)
-
(Optional) Click on the cog icon on the right and uncheck the "Only accessible from the local network" option when using some external proxy (e.g. Nabu Casa Cloud or cloudflared)
-
(Optional) Add conditions (e.g., only run 2 hours before sunset)
-
Add a
Light: Turn on
action -
Select your light entities
-
Switch to the YAML editor (click the three dots)
-
Paste the following code:
data: rgb_color: "{{trigger.json.rgb}}"
Note
- You can modify the automation, but ensure you keep the
"{{trigger.json.rgb}}"
string intact. - Have a look at automation-example.yaml for a full automation example.
- When using Yeelight lamps, you may want to enable their music mode.
- Install the extension using the Spicetify Marketplace
- Configure the extension:
- Click on your profile picture in the top right corner
- Choose "Home Assistant Settings"
- Fill in the required information:
- Home Assistant URL: Your full Home Assistant URL (must start with
http://
orhttps://
) - Webhook ID: The ID you copied from the Home Assistant automation
- Home Assistant URL: Your full Home Assistant URL (must start with