n8n Workflow

Turn On A Light To A Specific Color On Any Update In Github Repository

This n8n workflow automates tasks using GitHub. Turn On A Light To A Specific Color On Any Update In Github Repository - ready to import and run in your n8n instance.

n8n workflow.json

About This Script

This n8n workflow automates tasks using GitHub. Turn On A Light To A Specific Color On Any Update In Github Repository - ready to import and run in your n8n instance.
Features:
  • Integrates with GitHub
Source Code
{
    "nodes": [
        {
            "id": "161c2837-6a3c-4492-93d0-c094b8788362",
            "name": "On any update in repository",
            "type": "n8n-nodes-base.githubTrigger",
            "position": [
                620,
                520
            ],
            "webhookId": "9f16fefe-dacf-48b8-a576-48ed0599e911",
            "parameters": {
                "owner": "dummydavid",
                "events": [
                    "*"
                ],
                "repository": "DemoRepo"
            },
            "credentials": {
                "githubApi": {
                    "id": "20",
                    "name": "[UPDATE ME]"
                }
            },
            "typeVersion": 1
        },
        {
            "id": "2703e869-60e0-4906-9fd2-35a5e54aae1f",
            "name": "Turn a light red",
            "type": "n8n-nodes-base.homeAssistant",
            "position": [
                840,
                520
            ],
            "parameters": {
                "domain": "light",
                "service": "turn_on",
                "resource": "service",
                "operation": "call",
                "serviceAttributes": {
                    "attributes": [
                        {
                            "name": "entity_id",
                            "value": "light.lamp"
                        },
                        {
                            "name": "rgb_color",
                            "value": "={{[255,0,0]}}"
                        }
                    ]
                }
            },
            "credentials": {
                "homeAssistantApi": {
                    "id": "21",
                    "name": "home.davidsha.me"
                }
            },
            "typeVersion": 1
        },
        {
            "id": "bbbd01eb-9409-414e-bc85-c615add05580",
            "name": "Note",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                160,
                420
            ],
            "parameters": {
                "width": 378,
                "height": 351,
                "content": "Configuration note: update with your credentials or endpoint.",
                "color": "#FFF59D"
            },
            "typeVersion": 1
        },
        {
            "id": "33dfde3b-a4b5-468d-8d13-9d3577563f9b",
            "name": "Note1",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                840,
                700
            ],
            "parameters": {
                "width": 315,
                "height": 248,
                "content": "Configuration note: update with your credentials or endpoint.",
                "color": "#FFF59D"
            },
            "typeVersion": 1
        }
    ],
    "connections": {
        "On any update in repository": {
            "main": [
                [
                    {
                        "node": "Turn a light red",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "n8n_version": "1.5.0"
}
Requirements
n8n instance, Github API credentials
Tags
#n8n #automation #workflow
Quick Actions
More in n8n Workflows