{ "name": "Samsung TV Steuerung", "nodes": [ { "parameters": { "httpMethod": "POST", "path": "tv-control", "responseMode": "responseNode", "options": {} }, "id": "webhook-trigger", "name": "Webhook Trigger", "type": "n8n-nodes-base.webhook", "typeVersion": 2, "position": [250, 300] }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict" }, "conditions": [ { "id": "condition-power-off", "leftValue": "={{ $json.body.command }}", "rightValue": "power_off", "operator": { "type": "string", "operation": "equals" } } ], "combinator": "and" }, "options": {} }, "id": "switch-command", "name": "Switch Command", "type": "n8n-nodes-base.switch", "typeVersion": 3, "position": [450, 300] }, { "parameters": { "method": "POST", "url": "http://samsung-tv-api:5000/tv/power/off", "options": {} }, "id": "tv-power-off", "name": "TV Power Off", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [650, 200] }, { "parameters": { "method": "POST", "url": "http://samsung-tv-api:5000/tv/key", "sendBody": true, "specifyBody": "json", "jsonBody": "={{ JSON.stringify({ key: $json.body.key }) }}", "options": {} }, "id": "tv-send-key", "name": "TV Send Key", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [650, 400] }, { "parameters": { "respondWith": "json", "responseBody": "={{ $json }}", "options": {} }, "id": "respond-webhook", "name": "Respond to Webhook", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.1, "position": [850, 300] } ], "connections": { "Webhook Trigger": { "main": [ [ { "node": "Switch Command", "type": "main", "index": 0 } ] ] }, "Switch Command": { "main": [ [ { "node": "TV Power Off", "type": "main", "index": 0 } ], [ { "node": "TV Send Key", "type": "main", "index": 0 } ] ] }, "TV Power Off": { "main": [ [ { "node": "Respond to Webhook", "type": "main", "index": 0 } ] ] }, "TV Send Key": { "main": [ [ { "node": "Respond to Webhook", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1" }, "staticData": null, "tags": [], "triggerCount": 0, "updatedAt": "2025-12-28T00:00:00.000Z", "versionId": "1" }