Spotify Workflow: Condition, Filter and HTTP request
Triggered manually or by an app event. Connects Condition, Filter, HTTP request, Split Out, Spotify, Switch. 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.
Front matter
name: Spotify Workflow
description: Triggered manually or by an app event. Connects Condition, Filter, HTTP request, Split Out, Spotify, Switch. ### 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.
category: Automation
kind: Workflow
software: Condition|Filter|HTTP request|Split Out|Spotify|SwitchSpotify Workflow
Triggered manually or by an app event. Connects Condition, Filter, HTTP request, Split Out, Spotify, Switch. ### 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.
Steps
- Spotify Next (spotify)
- Spotify Resume (spotify)
- Spotify Pause (spotify)
- Sticky Note (stickyNote)
- Spotify API - Volume up 5pct (httpRequest)
- Spotify API - Volume down 5pct (httpRequest)
- Sticky Note8 (stickyNote)
- Spotify API - Get Available Devices (httpRequest)
- Extract Individual Devices (splitOut)
- Select Device by Name to get device_id (filter)
- Custom Function 1 - P1 (httpRequest)
- Custom Function 2 - P2 (spotify)
- Custom Function 1 - P3 (spotify)
- Spotify API - Activate Target Playback Device (httpRequest)
- Route to Requested Function (switch)
- Custom Function 2 - P1 (spotify)
- Filter (filter)
- Globals (set)
- Custom Function 2 - P3 (spotify)
- Oops. How was this reached? (noOp)
- Spotify API - Get Device Status (httpRequest)
- Already playing on Target Device? (if)
- Is Playing? (if)
- Spotify Prev (spotify)
- MQTT Trigger - Remote Switch (mqttTrigger)
- Remote Action -> Function Router (switch)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source: https://github.com/Zie619/n8n-workflows/blob/main/Splitout/0560_Splitout_Filter_Import_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.