Questions tagged [philips-hue]

Philips Hue is a personal wireless lighting system using lightbulbs with multi-colored LEDs.

The Philips hue lightbulbs can be controlled directly via ZigBee Light Link or via the SmartBridge provided with the hue Starter Kit, which supplies a RESTful web-interface.

Philips has launched an official Hue website:

The documentation:

Various APIs are available:

There is an official hue Developers forum:

208 questions
5
votes
3 answers

Example of Swift and a Put request for a RESTful API

I'm trying to learn Swift by creating an OSX app for the Phillips Hue light API. However, and I feel silly here, I can't even get a simple example working. I'm using this library in X Code 6.1: https://github.com/hallas/agent Here's the code I'm…
Amanda_Panda
  • 1,156
  • 4
  • 26
  • 68
4
votes
1 answer

Turn Philips HUE Lights on When the Ambient Light is Below X

I have Philips HUE Lights throughout my office and I've been trying to find a way to get them to turn on when it gets below a set lux / ambient light luminous so we don't have to wait till some realises its way too dark and turn them all on. It…
Trent
  • 429
  • 1
  • 5
  • 19
4
votes
2 answers

Can a Philips Hue app using the API react to a light being turned on?

I'm trying to accomplish something simple. When someone turns on a hue light, if it's after 6pm, set the light to a specific color. I haven't been able to find a way to do this without polling constantly (which seems lame). The main Hue iOS app has…
anthonysapien
  • 67
  • 1
  • 6
4
votes
1 answer

How to use sunset and sunrise data

I see that the Hue API provides, on the "Daylight" sensor, fields for geographic location, and a sunrise/sunset offset. To be specific: lat long sunriseoffset sunsetoffset The API as currently published does not provide any information that I could…
caprica
  • 3,902
  • 4
  • 19
  • 39
4
votes
3 answers

Where do Xcode Bots put their results, so I can parse them?

Our dev team has always used Jenkins for our iOS builds, and used Philips Hue lights to inform the team when the build is Building(Yellow), Successful(Green), Failed(Red). Now we have moved to Xcode CI and Bots, and I do not know when any unit tests…
Schlank
  • 181
  • 9
4
votes
1 answer

How do I convert an RGB value to a XY value for the Phillips Hue Bulb

How do I properly convert the pixel rgb values in a picture I have taken to th XY values needed to to send to the Phillips Hue device? My current code does the following: 1:Take a picture, find the most common colors. 2:Cycle throw them and then…
Encompass
  • 562
  • 3
  • 13
  • 27
4
votes
2 answers

Convert Philips Hue XY values to HEX

The Philips Hue API returns an xy value in certain cases for the color value of the blub. How can I convert this to a HEX string? I've tried various formulas I found online but none of them work on all of the colors from the bulb. I took a look at…
Cowlby
  • 651
  • 7
  • 16
4
votes
3 answers

Using Applescript and cURL to control Philips Hue lighting system

I see that it is possible to control Philips Hue lights with commands such as this: Make an HTTP POST request of the following to (your hue's website here) {"username": "YourAppName", "devicetype": "YourAppName"} If you have not pressed the button…
3
votes
2 answers

Getting "EHOSTUNREACH" when trying to connect to API using Axios + Express.js

I started playing around with the Philips Hue Bridge API by sending it requests using Postman. I was able to authenticate myself, create a user and even successfully turn lights on or off. Conclusion: I am able to reach the API. Next I made a mini…
Philipp Panik
  • 254
  • 1
  • 4
  • 15
3
votes
2 answers

Nodejs Fetch API: unable to verify the first certificate

I'm using the fetch API module in my Philips Hue project and when I make a call to the local ip address (my hub) it produces that error in the title. const fetch = require('node-fetch'); const gateway = "192.168.0.12"; const username =…
Nathan
  • 1,393
  • 1
  • 9
  • 40
3
votes
1 answer

How can I discover the Phillips Hue Wifi lightbulbs on my network with nmap?

Phillips has these instructions (https://developers.meethue.com/develop/get-started-2/) for connecting to/playing with their Hue lights. Apparently, they each host a small server. I've heard/seen nmap suggested pretty much everywhere for…
Seph Reed
  • 8,797
  • 11
  • 60
  • 125
3
votes
2 answers

How to control Philips Hue lights using Python script

I am trying to write a Philips Hue script using python that needs to be able to communicate with the bridge from a different network. I have a VPS that the scripts will be running on. I have already tried thinks like phue but these libraries are…
Stan
  • 33
  • 1
  • 5
3
votes
1 answer

Philips Hue - "method, PUT, not available for resource, /scenes" (Java SDK)

I want to create a scene using the Hue Java SDK. This is the code I am using: mHueSDK.getSelectedBridge().saveScene(scene, ...); It does not work, it gives an error. This is the output in onError(...): method, PUT, not available for resource,…
Thomas Vos
  • 12,271
  • 5
  • 33
  • 71
3
votes
1 answer

iOS SDK Hue Philips with Swift

I tried to import iOS SDK in Objective C for Hue. I followed instructions here : https://github.com/PhilipsHue/PhilipsHueSDK-iOS-OSX I added the HueSDK_iOS.framework to my project, I added all Lumberjack files and I created the .h with the import…
3
votes
0 answers

Philip's Hue - White light colour palette - iOS implementation

Implemented Coloured light palette for Philip's Hue light with the help of https://github.com/InfinitApps/InfColorPicker/blob/master/InfColorPicker/InfHSBSupport.m UInt8 r_s = (UInt8) ((1.0f - r) * 255); UInt8 g_s = (UInt8) ((1.0f - g) *…
Alen Alexander
  • 725
  • 6
  • 22
1
2
3
13 14