- Requests library (http://docs.python-requests.org/en/latest/user/install/#install)
- Run findhub.py with your local IP address: (e.g. ./findhub.py 10.0.1.200). It will return the IP of the Hue controller
- Create a plaintext file called "hue.cfg" (or copy the hue.cfg.example) and replace the IP with the Hue controller's IP
- Run register.py, it will read the IP from the config file. It will prompt you to push the button on the Hue controller, do it.
- register.py will write the secret into your hue.cfg; this acts as an API key from the python scripts to your specific Hue controller.
- You can now run scripts like setlight.py or pulse.py, or write your own.
- fadeon.py fades lights on over 600 seconds
- pulse.py pulses lights on and off with 1 second sleep between
- setlight.py takes light number and brightness parameters and sets light(s) on and to that brightness
All the info on the API I got from http://www.nerdblog.com/2012/10/a-day-with-philips-hue.html