IOT Button Remote / Spotify Control Integration with MQTT — n8n 工作流

复杂度 触发器24 个节点🏷️ Miscellaneous👁 3,364 次查看作者:Hubschrauber

概览

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

工作流预览

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

工作原理

  1. 1

    触发器

    工作流由 触发器 触发器启动。

  2. 2

    处理

    数据流经 24 个节点, connecting filter, httprequest, if。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (24)

HT

HTTP Request

httpRequest

#1
SP

Spotify

spotify

#2

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 iot-button-remote-spotify-control-integration-with-mqtt 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

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

集成

filterhttprequestifmqtttriggersetsplitoutspotifyswitch

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点24
复杂度high
触发器trigger
查看次数3,364

创建者

Hubschrauber

Hubschrauber

@hubschrauber

标签

filterhttprequestifmqtttriggersetsplitoutspotifyswitch

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Miscellaneous Workflows