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. 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
  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
カテゴリMiscellaneous

作成者

Hubschrauber

Hubschrauber

@hubschrauber

タグ

filterhttprequestifmqtttriggersetsplitoutspotifyswitch

n8n初めてですか?

n8nは無料のオープンソースワークフロー自動化ツールです。セルフホストまたはクラウド版をご利用いただけます。

n8nを無料で始める →

Related Miscellaneous Workflows