Enter forum description here ...
+7
Under review

Blinking HUE lights (new feature for your projects)

Ricardo Pinto | visiontech.pt 2 months ago in Devices / HUE updated 2 months ago 5


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
Under review

HUE problems with latest version

Andy Gill 12 months ago in Devices / HUE updated by ComfortClick Support 12 months 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
Under review

Hue socket issue?

Noel Fuentes 1 year ago in Devices / HUE updated 1 year 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

0

How to intercept the hue switch?

Lucas Chezzi 2 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 3 years ago in Devices / HUE updated by ComfortClick Support 3 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 4 years ago in Devices / HUE updated by Tilen Suhadolnik 3 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 4 years ago in Devices / HUE updated 4 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

0
Answered

Hue lighting not working properly after upgrade server version to 4.0

Fred Hartman 5 years ago in Devices / HUE updated by ComfortClick Support 5 years ago 4

Upgrade from server version 3 to 4 was no problem, everything is working OK, except for my HUE lamps. 6 pieces in total, my predefined scenes are working, but some lamps are not changing during selecting new scene. for example, 3 lamps are working fine and 1 isn't working, after activating same scene for 4/5 times missing lamp is working as proposed.

Could you help me out with this problem?