Generate Phillips Hue API token
Posted on by Wim Mostmans
If you want to start to do some experimenting with your Phillips Hue lights chances are that you’ll need to use the Hue API sooner or later. To use this API you will need to get a token but at the moment there is no official way to do this.
You can do it as follows:
- Get your bridge IP via
https://www.meethue.com/api/nupnp
- Go to the API debugger
http://<bridge ip address>/debug/clip.html
and use/api/
as URL and message body{"devicetype":"my_hue_app#hue app"}
.
- Press the button on your bridge and now push the
POST
button on the debugger. - You should see a response like:
username
is the token you can use to control your lights.
Example usage
Tip Jar
If you like this blog, leave a tip! Your tip will help provide the basic necessities which sustain this blog: coffee, beer and raincoats for surviving the pitiful Belgium climate.
Buy me a coffeeAbout Wim Mostmans
Freelance full stack developer and Co-founder of the Employee Advocacy platform Ambassify, with a general interest for web technologies and electronics.