{
  "openruna_format": "flow-graph-v1",
  "title": "0560_Splitout_Filter_Import_Webhook",
  "slug": "0560-splitout-filter-import-webhook",
  "source_filename": "0560_Splitout_Filter_Import_Webhook.json",
  "nodes": [
    {
      "id": "Spotify Next",
      "name": "Spotify Next",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Spotify Resume",
      "name": "Spotify Resume",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Spotify Pause",
      "name": "Spotify Pause",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Spotify API - Volume up 5pct",
      "name": "Spotify API - Volume up 5pct",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Spotify API - Volume down 5pct",
      "name": "Spotify API - Volume down 5pct",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Spotify API - Get Available Devices",
      "name": "Spotify API - Get Available Devices",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Extract Individual Devices",
      "name": "Extract Individual Devices",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Select Device by Name to get device_id",
      "name": "Select Device by Name to get device_id",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Custom Function 1 - P1",
      "name": "Custom Function 1 - P1",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Custom Function 2 - P2",
      "name": "Custom Function 2 - P2",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Custom Function 1 - P3",
      "name": "Custom Function 1 - P3",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Spotify API - Activate Target Playback Device",
      "name": "Spotify API - Activate Target Playback Device",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Route to Requested Function",
      "name": "Route to Requested Function",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Custom Function 2 - P1",
      "name": "Custom Function 2 - P1",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Filter",
      "name": "Filter",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Globals",
      "name": "Globals",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Custom Function 2 - P3",
      "name": "Custom Function 2 - P3",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "Oops. How was this reached?",
      "name": "Oops. How was this reached?",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Spotify API - Get Device Status",
      "name": "Spotify API - Get Device Status",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Already playing on Target Device?",
      "name": "Already playing on Target Device?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Is Playing?",
      "name": "Is Playing?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Spotify Prev",
      "name": "Spotify Prev",
      "integration": "spotify",
      "kind": "action"
    },
    {
      "id": "MQTT Trigger - Remote Switch",
      "name": "MQTT Trigger - Remote Switch",
      "integration": "mqtt",
      "kind": "trigger"
    },
    {
      "id": "Remote Action -> Function Router",
      "name": "Remote Action -> Function Router",
      "integration": "switch",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Filter",
      "to": "Custom Function 2 - P3"
    },
    {
      "from": "Globals",
      "to": "Remote Action -> Function Router"
    },
    {
      "from": "Is Playing?",
      "to": "Spotify Pause"
    },
    {
      "from": "Is Playing?",
      "to": "Spotify Resume"
    },
    {
      "from": "Custom Function 1 - P1",
      "to": "Custom Function 2 - P2"
    },
    {
      "from": "Custom Function 2 - P1",
      "to": "Filter"
    },
    {
      "from": "Custom Function 2 - P2",
      "to": "Custom Function 1 - P3"
    },
    {
      "from": "Extract Individual Devices",
      "to": "Select Device by Name to get device_id"
    },
    {
      "from": "Route to Requested Function",
      "to": "Spotify API - Volume up 5pct"
    },
    {
      "from": "Route to Requested Function",
      "to": "Spotify API - Volume down 5pct"
    },
    {
      "from": "Route to Requested Function",
      "to": "Is Playing?"
    },
    {
      "from": "Route to Requested Function",
      "to": "Custom Function 1 - P1"
    },
    {
      "from": "Route to Requested Function",
      "to": "Custom Function 2 - P1"
    },
    {
      "from": "Route to Requested Function",
      "to": "Oops. How was this reached?"
    },
    {
      "from": "Spotify API - Get Device Status",
      "to": "Already playing on Target Device?"
    },
    {
      "from": "Remote Action -> Function Router",
      "to": "Spotify Prev",
      "label": "arrow_left_click"
    },
    {
      "from": "Remote Action -> Function Router",
      "to": "Spotify Next",
      "label": "arrow_right_click"
    },
    {
      "from": "Remote Action -> Function Router",
      "to": "Spotify API - Get Device Status",
      "label": "brightness_up_click"
    },
    {
      "from": "Remote Action -> Function Router",
      "to": "Spotify API - Get Device Status",
      "label": "brightness_down_click"
    },
    {
      "from": "Remote Action -> Function Router",
      "to": "Spotify API - Get Device Status",
      "label": "toggle"
    },
    {
      "from": "Remote Action -> Function Router",
      "to": "Spotify API - Get Device Status",
      "label": "brightness_up_hold"
    },
    {
      "from": "Remote Action -> Function Router",
      "to": "Spotify API - Get Device Status",
      "label": "brightness_down_hold"
    },
    {
      "from": "Already playing on Target Device?",
      "to": "Route to Requested Function"
    },
    {
      "from": "Already playing on Target Device?",
      "to": "Spotify API - Get Available Devices"
    },
    {
      "from": "Spotify API - Get Available Devices",
      "to": "Extract Individual Devices"
    },
    {
      "from": "Select Device by Name to get device_id",
      "to": "Spotify API - Activate Target Playback Device"
    },
    {
      "from": "Spotify API - Activate Target Playback Device",
      "to": "Route to Requested Function"
    }
  ]
}