Enter forum description here ...
+7
Under review

Blinking HUE lights (new feature for your projects)

Ricardo Pinto | visiontech pt 5 years ago in Devices / HUE updated 4 years ago 7


Hello everyone,


If you're kind of like me, you'll never be satisfied with the basic implementations of your systems.


So today, I've decided to explore the Philips HUE official API.


I know that bOS has already implemented HUE control, but I wanted to use some cool features that are kind of hidden on normal apps: blinking lights!


The purpose of this implementation, is using Philips HUE blinking lights for multi purposes, like blinking when someone rings the door, etc.


You can rely on IFTTT to do that, using the WebHooks, but if you're like me, prefer to keep the most on local network and don't depend on external services.


In this example, what you'll get:


- Access Philips HUE API to create a username key

- Extract the username key

- Create a HTTP device on bOS

- Create a command to send the blinking command to Philips HUE hub


Suggestions: 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:


- Access the Philips HUE IP address

https://hub_address/debug/clip.html

- Create a username key

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


- Extract the username:


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

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


Step 2:


- Get the group ID's

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

Message Body: leave the message body empty

Click on GET


In my case, the light group I want is ID 1


- Test the communication


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:


- Create HTTP device on BOS


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"}


That's it! Use the command as you want on your project.


On my case, I have the hue blinking when someone rings at my door.


If you want to explore other possibilites, please read the Philips HUE API, available for free. You can do the same on single lights, etc.


I'll post the example on the Examples Page of Comfortclick.

Btw, don't forget to at least say thanks! Most of us here, are either professionals or simple home users. I notice that most of the times someone posts something interesting, no one really cares. So don't just use the examples and don't pretend that you don't care. A simple "Thanks" is more than enough. Don't forget that every example posted here is not paid, it mostly depends on the time and patience of some members.

Happy easter.


Best regards

+1

Philips Hue API v2 Events (Server-Side Events)

Ricardo Pinto | visiontech pt 2 years ago in Devices / HUE updated 2 years ago 8

Hello everyone,


First of all, hope you all had a very nice Christmas, with all the beloved ones.


I'm using some Philips HUE sensors, and I was actually using some of them to turn KNX lights on.


The problem, is that we need to constantly pool the API, which is time and resource consuming for the HUE hub and Comfortclick.


Philips HUE updated the API to the v2, and they have some interesting features, like the events, which allows to keep a constant connection to a data stream, and get realtime updates without the need to constantly pool the HUB.


https://developers.meethue.com/develop/hue-api-v2/migration-guide-to-the-new-hue-api/#Event%20Stream (Login needed to see the API docs)


Side note:


I have to trick the HUB about the sensor. The sensor needs to be active, and for that at least one HUE light has to be linked. But on my case I don't want to turn on any HUE light, but rather a KNX light. For that, I link the sensor to a random HUE light, and set the actions to do nothing when detecting movement (so I can just extract the true motion from the json).


Back to the topic:


So I've tested the curl command, and I really get the realtime updates, and it looks awesome.


Problem: I can see this realtime updates on the Windows console, by using the curl command, as stated on their documentation:


curl --insecure -N -H 'hue-application-key: ' -H 'Accept: text/event-stream' https:///eventstream/clip/v2

But, I would like to do this on ComfortClick. I've tested several options, but none of them worked.


Anyone can eventually enlighten me, if it's doable?

+1
Under review

HUE problems with latest version

Andy Gill 6 years ago in Devices / HUE updated by ComfortClick Support 6 years ago 5

Since the latest release was installed I'm having issues with my Hue lighting, if I send any hue commands from BOS I lose the whole hue system, the hue switches no longer work and the lights come on and off randomly (possible delayed from switch operation). I have to reset the hue bridge and then the hue switches work again. and all is fine until I send another command via BOS.

0

Hue motion sensor supported

Michiel Kenis 4 years ago in Devices / HUE updated 4 years ago 12

Are Hue motions sensors supported within the HUE integration? 

I'm looking to detect a motion trigger and control my non-HUE lights with a Program-integration. 

Is this possible? 

0

Dim Hue lights with KNX

Robin Green 4 years ago in Devices / HUE 0

Hi, 

I´m trying to dim my Hue lights with a KNX "one button dimming" sensor, but without any luck.

Is this at all possible, or am I wasting my time? 

Thank you, 

0
Under review

Hue socket issue?

Noel Fuentes 6 years ago in Devices / HUE updated 6 years ago 2

Hello!

I've recently acquire an Osram socket, which is compatible with Hue. It's configured properly and bOS detected it. The thing is that I cannot add it to a scene nor add it to a program trigger: the value property remains grey and no option is shown (image down below).

Anyone with this problem or it's just me? :)

Thanks in advance.

Regards

Image 1763

0

How to intercept the hue switch?

Lucas Chezzi 7 years ago in Devices / HUE 0

I would like to intercept a hue switch button to turn on a light under knx? how can I do?

0
Under review

is bOS support Yeelight?

kim nguyen 8 years ago in Devices / HUE updated by ComfortClick Support 8 years ago 1

I'd like to use this cheap wifi hue light for my house (KNX installed) to turn on in red when my door garage is open.


I see some work in https://www.domoticz.com/wiki/Yeelight


is there a way to intergrated with bOS?

0
Under review

Hue-connection not working

Peter Edwards 8 years ago in Devices / HUE updated by Tilen Suhadolnik 8 years ago 15

Got my hue-lights home today and started connecting them towards bOS. Sadly, the integration is broken.


When doing a wireshark-trace it´s obvious that bOS tries to connect to the hue bridge with user "ComfortClick" - no matter what username you specify in the configure-wizard.


The HUE API states that fixed usernames should not be used anymore as the are "soon" to be deprecated from the API. I guess that day has arrived - I tried to create a new user manually through the API but only got a json back with "username is not a valid command" or something like that.

0
Under review

Using white only Hue lamps

Andy Gill 9 years ago in Devices / HUE updated 9 years ago 2

Hi There,


I'm using white only dimming Hue lamps I can't see away of configuring this in BOS, although I can dim the Lamp it's giving the options for all the colours which confuses the user?

Can I have a simple dimmer and on/off control?


Cheers


Andy