Files
proxmox-infrastruktur/docker/samsung-tv-api/n8n-workflow-example.json
Martin Eckardt 64bcc0091a Migrate Docker containers to dedicated VM
Architecture changes:
- Created VM 100 "docker-services" (Debian 12 Cloud Image)
- 10GB RAM, 6 Cores, 50GB system disk
- Separate 100GB LVM data volume for service data
- WireGuard moved from host to VM (10.0.0.2)
- All containers migrated and running

Updated documentation to reflect new architecture

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 21:04:47 +01:00

148 lines
3.2 KiB
JSON

{
"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"
}