Library

We have an extensive library of various bOS configuration examples. Select your heating pump, AC, TV or almost any other device and import it to your smart building configuration. We also encourage all system integrators and DIYs to add their own examples to ComfortClick library.

Blinking PHILIPS HUE lights icon

Blinking PHILIPS HUE lights

Access PHILIPS HUE official json api and enable extra functions on your project, like blinking hue lights

Author: Ricardo Pinto (visiontech.pt)

DOWNLOAD

This example provides additional features to your HUE lamps. Using our HTTP driver and your HUE lamps, additional effects can be created using variety of different options.

Suggestion: access your Philips HUE app, disable DHCP, and place a fixed IP address on your network so you can point to the correct IP address every time.

Step 1:

https://hub_address/debug/clip.html

URL: /api

Message Body: {"devicetype":"comfortclick#dev"}

Click on the hub link button (the top round button on the hub with Philips written on it)

Click on POST

Copy the given username to a safe place, you'll need it for every command.

On this implementation, we want to blink all the lights on a specific light group, so we'll fetch the group number.

Step 2:

URL: https://hub_address/api/your_username/groups

Message Body: leave the message body empty

Click on GET

In this case, the light group we want is ID 1

URL: https://hub_address/api/your_username/groups/1/action

Message Body: {"alert": "select"}

Click on PUT

If it blinks once, perfect. Now you're ready to move to bOS.

There's two available commands for blinking: just once, or several. Depending on what you want, you'll have to change the Message Body for the correct code:

{"alert": "select"} will cause a short blink {"alert": "lselect"} will cause several seconds of blinking

If you need to blink several times, you'll need to use {"alert": "lselect"} on the Message Body.

Step 3:

Enable the HTTP device

Host URL: https://hub_address/api/your_username/groups/1/action

Create a Command, call it "Blink HUE"

Change the command method type to PUT

On Put Data, insert: {"alert": "lselect"}

Comments

Please login to post a comment.

This website uses cookies

We use cookies to personalize content, use live chat, provide social media features and to analyze our traffic. We also share information about your use of our site with analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.