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をダウンロード ボタンをクリックしてワークフローファイルを保存します。
- 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
- 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