Skip to content

Using chat GPT to control hue lights with natural language

Notifications You must be signed in to change notification settings

rhayes777/hue_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control Hue with ChatGPT

Small project illustrating how ChatGPT can be used to control Hue lights.

Setup

Install dependencies

pip install -r requirements.txt

Set up OpenAI API key

Get an API Key from OpenAI.

Export it as an environment variable:

export OPENAI_API_KEY={your_api_key}

Hue

You should be connected to the same WiFi network as your Hue bridge. When you first run the script you will need to press the button on the bridge to authorize the script.

Run

Simply run the script:

./main.py

Enter commands like "turn on the lights", "turn off the lights" or "make one light blue and the other red"

About

Using chat GPT to control hue lights with natural language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages