# (유즈케이스) 깃허브 X 필립스 휴 (⭐⭐)

## 전제조건

- “필립스 휴” 스마트 조명 연동제품이 있어야 합니다.

    - [https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.philipshue](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.philipshue)

![[n8n] 프로그래머의 신호등: GitHub 액션과 Philips Hue 연동하기 #shorts](https://youtu.be/Rg6uKmJ_zGE?si=M0DpUwXabTOzhh6A)

## 시나리오

> 

- 깃허브로 이슈를 생성하면 조명이 한번 깜박이게 설정하기.

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094242_Cud8OsFqL5YZBVHsZY?q=80&s=1280x180&t=outside&f=webp)

1. (Trigger) : 테스트로 시작을 누를때만 작동. 프로덕션은 webhook을 연결해서 사용하도록 변경하기.

2. (Github > create : issue) : 

    1. 깃허브 계정을 연결 후, Resource를 Issue. Operation은 Create. 업로드할 리포지토리를 설정합니다.

    2. 이슈에 적을 Title, Body를 입력 합니다. 

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094242_XYBDtDjcmsJztrCH59?q=80&s=1280x180&t=outside&f=webp)

3. (Philips Hue > update : light) : 

    1. 필립스 계정을 연결 후, Resource를 Light. Operation은 Update. Light Name은 1 로 설정합니다.

    2. Additional Fields 에서 Alert Effect를 선택 후 드롭다운에서 Select(한번만 깜빡하는 기능)를 선택합니다.

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094243_o6ObSdmV2AvMWpjC7H?q=80&s=1280x180&t=outside&f=webp)

## Philips Hue 

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094244_t8psjSv7EZCOeXt2l9?q=80&s=1280x180&t=outside&f=webp)

- [https://developers.meethue.com/add-new-hue-remote-api-app/](https://developers.meethue.com/add-new-hue-remote-api-app/) 에서 Hue앱을 만들기 

- [https://developers.meethue.com/my-apps/](https://developers.meethue.com/my-apps/) 에서 Callback URL이 잘 입력되었는지 체크 

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094245_s4aSTADafujvjWNkiX?q=80&s=1280x180&t=outside&f=webp)

## 트러블슈팅

- LIGHT ID를 얻는 방법.

    - 최신 버전의 Hue 앱은 더 이상 앱의 '정보' 섹션에 조명 ID를 표시하지 않으며, 이를 찾기 위해 앱을 찾습니다. `Hue Config Viewer` 

    - 앱을 Hue 브리지에 페어링한 후, 에서 모든 Hue 조명의 숫자 ID를 볼 수 있습니다.

    - 나중엔 알았지만 놀랍게도 “1” 이 Light ID 값 이었다.

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094245_GaPjISzWkcEywzQAa3?q=80&s=1280x180&t=outside&f=webp)

For the site tree, see the [root Markdown](https://slashpage.com/n8n-guide.md).
