{
  "workflow": {
    "id": 1856,
    "name": "Turn on a light to a specific color on any update in GitHub repository",
    "views": 9956,
    "recentViews": 0,
    "totalViews": 9956,
    "createdAt": "2023-01-05T14:10:52.233Z",
    "description": "This workflow turns a light red when an update is made to a GitHub repository. By default, updates include pull requests, issues, pushes just to name a few.\n\n## Prerequisites\n\n- [GitHub credentials](https://docs.n8n.io/integrations/builtin/credentials/github/).\n- [Home Assistant credentials](https://docs.n8n.io/integrations/builtin/credentials/homeassistant/).\n\n## How it works\n\n1. Triggers off on the `On any update in repository` node.\n2. Uses Home Assistant to turn on a light and then configure the light to turn red.",
    "workflow": {
      "meta": {
        "instanceId": "a2434c94d549548a685cca39cc4614698e94f527bcea84eefa363f1037ae14cd"
      },
      "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": "credential-id",
              "name": "githubApi Credential"
            }
          },
          "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": "credential-id",
              "name": "homeAssistantApi Credential"
            }
          },
          "typeVersion": 1
        },
        {
          "id": "bbbd01eb-9409-414e-bc85-c615add05580",
          "name": "Note",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            160,
            420
          ],
          "parameters": {
            "width": 378,
            "height": 351,
            "content": "## Turn on a light to a specific color on any update in GitHub repository\nThis workflow turns a light red when an update is made to a GitHub repository. By default, updates include pull requests, issues, pushes just to name a few.\n\n### How it works\n1. Triggers off on the `On any update in repository` node.\n2. Uses Home Assistant to turn on a light and then configure the light to turn red."
          },
          "typeVersion": 1
        },
        {
          "id": "33dfde3b-a4b5-468d-8d13-9d3577563f9b",
          "name": "Note1",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            840,
            700
          ],
          "parameters": {
            "width": 315,
            "height": 248,
            "content": "### Configure light here\nIt is likely the name of the light that you want to turn a specific colour is not called `light.lamp`. In which case, please head to your Home Assistant instance and find the light taking note of it's `entity_id`. See discussion [here](https://community.home-assistant.io/t/find-the-entity-id-of-a-yeelight-light-in-manual-mode-or-automatic-mode-doesnt-work/165557) for help.\n\nIf you would also like to change the colour the light turns to, do so with an [RGB color picker](https://www.google.com/search?q=rgb+color+picker&oq=rgb+colo&aqs=chrome.0.0i67i433j69i57j0i67l4j0i512l4.6248j0j7&sourceid=chrome&ie=UTF-8). Default colour is red (255,0,0)."
          },
          "typeVersion": 1
        }
      ],
      "connections": {
        "On any update in repository": {
          "main": [
            [
              {
                "node": "Turn a light red",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    },
    "lastUpdatedBy": 11,
    "workflowInfo": {
      "nodeCount": 4,
      "nodeTypes": {
        "n8n-nodes-base.stickyNote": {
          "count": 2
        },
        "n8n-nodes-base.githubTrigger": {
          "count": 1
        },
        "n8n-nodes-base.homeAssistant": {
          "count": 1
        }
      }
    },
    "status": "published",
    "user": {
      "name": "n8n Team",
      "username": "n8n-team",
      "bio": "Meet the official n8n team. We specialize in building workflows that transform intricate tasks into seamless operations.",
      "verified": true,
      "links": [
        ""
      ],
      "avatar": "https://gravatar.com/avatar/b3d1a47322f05a8be3d2e7bad6a80c29161bd58b91e4762cbb3ac25e5d0db5a8?r=pg&d=retro&size=200"
    },
    "nodes": [
      {
        "id": 17,
        "icon": "file:github.svg",
        "name": "n8n-nodes-base.githubTrigger",
        "codex": {
          "data": {
            "resources": {
              "generic": [
                {
                  "url": "https://n8n.io/blog/automation-for-maintainers-of-open-source-projects/",
                  "icon": "🏷️",
                  "label": "How to automatically manage contributions to open-source projects"
                },
                {
                  "url": "https://n8n.io/blog/5-workflow-automations-for-mattermost-that-we-love-at-n8n/",
                  "icon": "🤖",
                  "label": "5 workflow automations for Mattermost that we love at n8n"
                },
                {
                  "url": "https://n8n.io/blog/how-to-set-up-a-ci-cd-pipeline-with-no-code/",
                  "icon": "🎡",
                  "label": "How to set up a no-code CI/CD pipeline with GitHub and TravisCI"
                }
              ],
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.githubtrigger/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/github/"
                }
              ]
            },
            "categories": [
              "Development"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"trigger\"]",
        "defaults": {
          "name": "Github Trigger"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yMC4wMTY1IDBDOC45NDc5MSAwIDAgOS4wMTM4OCAwIDIwLjE2NTNDMCAyOS4wNzkyIDUuNzMzMjQgMzYuNjI0NiAxMy42ODY4IDM5LjI5NTJDMTQuNjgxMiAzOS40OTYgMTUuMDQ1NCAzOC44NjEzIDE1LjA0NTQgMzguMzI3NEMxNS4wNDU0IDM3Ljg1OTkgMTUuMDEyNiAzNi4yNTc1IDE1LjAxMjYgMzQuNTg3OUM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MyLjc4NTFDMjQuOTg3MyAzNS40ODkzIDI0Ljk1NDUgMzcuNjU5NiAyNC45NTQ1IDM4LjMyN0MyNC45NTQ1IDM4Ljg2MTMgMjUuMzE5MiAzOS40OTYgMjYuMzEzMiAzOS4yOTU2QzM0LjI2NjcgMzYuNjI0MiAzOS45OTk5IDI5LjA3OTIgMzkuOTk5OSAyMC4xNjUzQzQwLjAzMjcgOS4wMTM4OCAzMS4wNTIgMCAyMC4wMTY1IDBaIiBmaWxsPSIjMjQyOTJGIi8+Cjwvc3ZnPgo="
        },
        "displayName": "Github Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 5,
            "name": "Development"
          }
        ]
      },
      {
        "id": 498,
        "icon": "file:homeAssistant.svg",
        "name": "n8n-nodes-base.homeAssistant",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.homeassistant/"
                }
              ],
              "credentialDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/credentials/homeassistant/"
                }
              ]
            },
            "categories": [
              "Miscellaneous"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0"
          }
        },
        "group": "[\"output\"]",
        "defaults": {
          "name": "Home Assistant"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjRjJGNEY5IiBkPSJNMjQwIDIyNC43NjJjMCA4LjI1LTYuNzUgMTUtMTUgMTVIMTVjLTguMjUgMC0xNS02Ljc1LTE1LTE1di05MGMwLTguMjUgNC43Ny0xOS43NjkgMTAuNjEtMjUuNjA5bDk4Ljc4LTk4Ljc4YzUuODMtNS44MyAxNS4zOC01LjgzIDIxLjIxIDBsOTguNzkgOTguNzg5YzUuODMgNS44MyAxMC42MSAxNy4zNiAxMC42MSAyNS42MXY5MHoiLz48cGF0aCBmaWxsPSIjMThCQ0YyIiBkPSJtMjI5LjM5IDEwOS4xNTMtOTguNzgtOTguNzhjLTUuODMtNS44My0xNS4zOC01LjgzLTIxLjIxIDBsLTk4Ljc5IDk4Ljc4QzQuNzggMTE0Ljk4MyAwIDEyNi41MTIgMCAxMzQuNzYydjkwYzAgOC4yNSA2Ljc1IDE1IDE1IDE1aDkyLjI3bC00MC42My00MC42M2MtMi4wOS43Mi00LjMyIDEuMTMtNi42NCAxLjEzLTExLjMgMC0yMC41LTkuMi0yMC41LTIwLjVzOS4yLTIwLjUgMjAuNS0yMC41IDIwLjUgOS4yIDIwLjUgMjAuNWMwIDIuMzMtLjQxIDQuNTYtMS4xMyA2LjY1bDMxLjYzIDMxLjYzdi0xMTUuODhjLTYuOC0zLjM0LTExLjUtMTAuMzItMTEuNS0xOC4zOSAwLTExLjMgOS4yLTIwLjUgMjAuNS0yMC41czIwLjUgOS4yIDIwLjUgMjAuNWMwIDguMDctNC43IDE1LjA1LTExLjUgMTguMzl2ODEuMjdsMzEuNDYtMzEuNDZjLS42Mi0xLjk2LS45Ni00LjA0LS45Ni02LjIgMC0xMS4zIDkuMi0yMC41IDIwLjUtMjAuNXMyMC41IDkuMiAyMC41IDIwLjUtOS4yIDIwLjUtMjAuNSAyMC41Yy0yLjUgMC00Ljg4LS40Ny03LjA5LTEuMjlMMTI5IDIwOC44OTJ2MzAuODhoOTZjOC4yNSAwIDE1LTYuNzUgMTUtMTV2LTkwYzAtOC4yNS00Ljc3LTE5Ljc3LTEwLjYxLTI1LjYxeiIvPjwvc3ZnPg=="
        },
        "displayName": "Home Assistant",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 11,
            "name": "Miscellaneous"
          }
        ]
      },
      {
        "id": 565,
        "icon": "fa:sticky-note",
        "name": "n8n-nodes-base.stickyNote",
        "codex": {
          "data": {
            "alias": [
              "Comments",
              "Notes",
              "Sticky"
            ],
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers"
              ]
            }
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Sticky Note",
          "color": "#FFD233"
        },
        "iconData": {
          "icon": "sticky-note",
          "type": "icon"
        },
        "displayName": "Sticky Note",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 16,
        "name": "DevOps"
      }
    ],
    "image": []
  }
}