Small project illustrating how ChatGPT can be used to control Hue lights.
pip install -r requirements.txtGet an API Key from OpenAI.
Export it as an environment variable:
export OPENAI_API_KEY={your_api_key}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.
Simply run the script:
./main.pyEnter commands like "turn on the lights", "turn off the lights" or "make one light blue and the other red"