IOT Button Remote / Spotify Control Integration with MQTT — n8n 工作流
概览
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
使用的节点
HTTP RequestSpotify
工作流预览
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
工作原理
- 1
触发器
工作流由 触发器 触发器启动。
- 2
处理
数据流经 24 个节点, connecting filter, httprequest, if。
- 3
输出
工作流完成自动化并将结果发送到配置的目标。
节点详情 (24)
HT#1
HTTP Request
httpRequest
SP#2
Spotify
spotify
如何导入此工作流
- 1点击右侧 下载 JSON 按钮保存工作流文件。
- 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入。
- 3选择下载的
iot-button-remote-spotify-control-integration-with-mqtt文件并点击导入。 - 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
- 5点击 测试工作流 验证一切正常,然后激活它。
或直接在 n8n → 从 JSON 导入 中粘贴:
{ "name": "IOT Button Remote / Spotify Control Integration with MQTT", "nodes": [...], ...}
集成
filterhttprequestifmqtttriggersetsplitoutspotifyswitch
创建者
Hubschrauber
@hubschrauber
标签
filterhttprequestifmqtttriggersetsplitoutspotifyswitch