✨ $500 AI Visibility Audit — live at Spurlock Studios. Book the audit

Operations & Systems

Spotify Music IoT Controller

This workflow utilizes an IKEA 5-button switch via MQTT to control Spotify playback. It allows users to play/pause, skip tracks, adjust volume, and trigger custom functions on a specified Spotify device, effectively turning the switch into a smart music controller.

Built · ~4.5 hours saved per week

This workflow is for anyone who wants to control Spotify music playback using a physical IKEA 5-button switch, integrating smart home devices with their music experience. This workflow lets you control Spotify music with an IKEA 5-button switch. You can play/pause, skip songs, change volume, and trigger custom music functions. It finds your Spotify device and directs commands to it. You must connect an IKEA 5-button switch via MQTT. Set up Spotify API credentials in n8n. Define your target Spotify playback device name and your favorite playlist name in the "Globals" node. You need an IKEA 5-button switch, an MQTT broker, and a Spotify Premium account. You also need an n8n instance with Spotify and MQTT credentials configured. You can change the MQTT topic to match your switch. You can also customize the "custom functions" to do different Spotify actions, like playing a specific song or playlist. Key Technologies: n8n,MQTT,Spotify API,IKEA 5-button switch Automation Value: Controls Spotify with a physical button, no need to use a phone or computer. Allows custom music actions with simple button presses. Integrates smart home devices (IKEA switch) with Spotify. Automates Spotify device selection and activation. Provides a reliable and flexible framework for IoT music control. Best Practices: Use descriptive names for nodes to improve readability. Utilize "Globals" to easily manage and update key variables like device names and playlist names. Implement error handling (e.g., the "Oops. How was this reached?" node) to catch unexpected workflow paths. Break down complex logic into smaller, manageable nodes for clarity. Use sticky notes to document sections of the workflow, especially for complex routing or custom functions.

Tags: IoT, Music, Data Transformation

Integrations: HTTP

Related automations

Back to the Automation Library