Philips HUE Light Shutoff/on

Based on authentication into a location/area or the leaving of this area, automatically turn on or off the HUE light bulbs in that area

AH contributor: sethfiermonti

 

Specifications

 

Administration -> External Servers -> Endpoint Context Servers

Select Server Type

Generic HTTP

Server Name

<Your integration name>

On-Premise based URL

http://<bridge IP address>

Username

<Your username>

Password

 <Your password>

Administration -> Dictionaries -> Context Server Actions

Action Tab

Server Type

Generic HTTP

Server Name

<Select your integration name>

Action Name

<Describe the action>

HTTP Method

PUT

URL

http://<bridge IP address>/<user name>/lights/1/state

Content Tab

Content-Type

JSON

Content

{on}
{off}
{"bri":42}

 

Tips & Tricks

See website for more cool things like changing color of the lights even!

 

{"bri":42} <-- controls brightness (can make brighter or darker depending on circumstances - i.e. - more than X users in an auditorium for X time, then dim the lights!)
Version History
Revision #:
10 of 10
Last update:
‎11-06-2014 10:20 PM
Updated by:
 
Contributors
Comments
Community Administrator

Great post!

Always have been a sucker for room automation..  Great idea and really simple!

 

davidsnet

Went through the motions of doing this. Pretty cool post. Thanks! Here's some notes to speed things up for others.

 

URL would be as follows http://hue_bridge_ip/api/qVPLx2Ye5Mw14Mky/lights/1/state  where qVPLx2Ye5Mw14Mky is the secret created by your ios or android device. grab wireshark and sniff this out.

 

JSON content would look like this for ON  {"on":true} and this for OFF {"on":false}

 

Use the hue debug page to help you diagnose. at http://hue_bridge_ip/debug/clip.html

 

Cheers

 

 

For me it works with this settings in CPPM 6.5:

 

Endpoint Contect Server

- Server Name: <Your IP>

- Server Base URL: http://<YourIP>

No Userid or Password !

 

Context Server Action

- URL: /api/newdeveloper/lights/1/state

-Content: JSON   {"xy_inc":[0.1,-0.1]}   (to change colour)

 

Cheers

Reinhard

Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.