Receive MQTT message from IKEA 5-button Switch, and route actions.
Configured with Filter, HTTP Request, Mqtt Trigger, Split Out, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Files / media
- Web / API
- Transform
- Routing
- Trigger
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Spotify Next | Files / media | Spotify | nextSong |
| Spotify Resume | Files / media | Spotify | resume |
| Spotify Pause | Files / media | Spotify | pause |
| Spotify API - Volume up 5pct | Web / API | HTTP Request | PUT |
| Spotify API - Volume down 5pct | Web / API | HTTP Request | PUT |
| Spotify API - Get Available Devices | Web / API | HTTP Request | See node parameters |
| Extract Individual Devices | Transform | Split Out | See node parameters |
| Select Device by Name to get device_id | Routing | Filter | See node parameters |
| Custom Function 1 - P1 | Web / API | HTTP Request | PUT |
| Custom Function 2 - P2 | Files / media | Spotify | See node parameters |
| Custom Function 1 - P3 | Files / media | Spotify | nextSong |
| Spotify API - Activate Target Playback Device | Web / API | HTTP Request | PUT |
| Route to Requested Function | Routing | Switch | See node parameters |
| Custom Function 2 - P1 | Files / media | Spotify | playlist / getUserPlaylists |
| Filter | Routing | Filter | See node parameters |
| Globals | Transform | Edit Fields | See node parameters |
| Custom Function 2 - P3 | Files / media | Spotify | startMusic |
| Oops. How was this reached? | Routing | No Op | See node parameters |
| Spotify API - Get Device Status | Web / API | HTTP Request | See node parameters |
| Already playing on Target Device? | Routing | If | See node parameters |
| Is Playing? | Routing | If | See node parameters |
| Spotify Prev | Files / media | Spotify | previousSong |
| MQTT Trigger - Remote Switch | Trigger | Mqtt Trigger | See node parameters |
| Remote Action -> Function Router | Routing | Switch | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
mqttspotifyOAuth2Api
Workflow notes
Receive MQTT message from IKEA 5-button Switch, and route actions.
Receive MQTT message from IKEA 5-button Switch, and route actions.
Purpose and structure
This folder contains the Receive MQTT message from IKEA 5-button Switch, and route actions. workflow. Its executable nodes use filter, httpRequest, if, mqttTrigger, noOp, set, splitOut, spotify, switch. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
MQTT Trigger - Remote Switch
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0560_Splitout_Filter_Import_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Receive MQTT message from IKEA 5-button Switch, and route actions.
- Find the target player device (or spotify device group) by name, and activate it.