IOT Button Remote / Spotify Control Integration with MQTT — n8n Workflow

High complexity Trigger24 nodes🏷️ Miscellaneous👁 3,364 viewsby Hubschrauber

Overview

Overview This template integrates an IOT multi-button switch (meant for controlling a dimmable light) with Spotify playback functions, via MQTT messages. This isn't likely to work without some tinkering, but should be a good head start on receiving/routing IOT/MQTT messages and hooking up to a Spotify-like API. Requirements An IOT device capable of generating events that can be delivered as MQTT messages through an MQTT Broker e.g. Ikea Strybar remote An MQTT Broker to which n8n can connect a

Nodes used

HTTP RequestSpotify

Workflow Preview

Receive MQTT message from IKEA 5-button Switc
Find the target player device (or spotify dev
Spotify Next
Spotify Resume
Spotify Pause
Spotify API - Volume up …
Spotify API - Volume dow…
Spotify API - Get Availa…
E
Extract Individual Devices
S
Select Device by Name to…
Custom Function 1 - P1
Custom Function 2 - P2
Custom Function 1 - P3
Spotify API - Activate T…
R
Route to Requested Funct…
Custom Function 2 - P1
F
Filter
G
Globals
Custom Function 2 - P3
O
Oops. How was this reach…
Spotify API - Get Device…
A
Already playing on Targe…
I
Is Playing?
Spotify Prev
M
MQTT Trigger - Remote Sw…
R
Remote Action -> Functio…
24 nodes27 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 24 nodes, connecting filter, httprequest, if.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (24)

HT

HTTP Request

httpRequest

#1
SP

Spotify

spotify

#2

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded iot-button-remote-spotify-control-integration-with-mqtt file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "IOT Button Remote / Spotify Control Integration with MQTT", "nodes": [...], ...}

Integrations

filterhttprequestifmqtttriggersetsplitoutspotifyswitch

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes24
Complexityhigh
Triggertrigger
Views3,364

Created by

Hubschrauber

Hubschrauber

@hubschrauber

Tags

filterhttprequestifmqtttriggersetsplitoutspotifyswitch

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows