urbiworx / node-red-contrib-hue

A Node RED node that allow easy integration with the Hue System
Apache License 2.0
8 stars 10 forks source link

does not find my philips hue bridge #7

Open joyrider3774 opened 8 years ago

joyrider3774 commented 8 years ago

Hi,

I just installed your node red hue contribution in my node red installation, but the node does not seem to work. i only get an undefined listing in the brigde section and selecting it tells me to push the button on the bridge. I do this but nothing happens the list stays empty.

i can surf to /philipshue/server and it will show me my bridge ip and id. if i surf to philipshue/devices/:serverid i see and error 1 message

i'm not certain if this helpfull or not but i'd really like to use your node in node red but can't seem to figure out why it's not detecting my bridge

edit: i just figured out that i have the new philips hue bridge 2.0 which works with homekit might that be the reason that the nodes are not working ?

urbiworx commented 8 years ago

Hi, you say "if i surf to philipshue/devices/:serverid i see and error 1 message". It seems that there are problems creating the user with the hue bridge. I am not sure if this is connected to the hue bridge 2.0 or not (I have the old bridge), however you should press the button on the bridge right before opening the "philipshue/devices/:serverid" url and see if the problem persists. I think you only have 30 sec or so to do it.

joyrider3774 commented 8 years ago

Hi, i managed to make it work by first surfing to /philipshue/server copying the server id and then pressing the button on the hue bridge and then surfing to philipshue/devices/ i did not get the error 1 message but got a json object and it seems now devices are shown when using the node. I still don't know why it would not work pressing the button on the hue bridge from within node red. Another way to probably make it work was to create a hue.config file manually with the server id and an existing user. all is fine now thanks again

ghost commented 8 years ago

I had a similar issue on my 2.0 bridge. I think it partly maybe the sequencing involved in discovering/registering the bridge. The instructions over at : http://thethingbox.io/docs/Hue.html (which is actually a fork of this very project) helped:

"By double clicking on the Hue set Node, you will see the configuration panel. Then, you have to select a bridge in the bridge list. Hue bridges are automatically detected by the node. You will see a popup that will explain you that you have to push your Hue bridge Sync button (the one in the middle) in order to continue. Close this popup and go find your Hue bridge, and press the round shaped button (the one at the middle of the device) Once it is done, you have to open quickly the Hue node on your browser and there will be the list of the Hue bulbs that are already linked to your Hue bridge."

@urbiworx may I suggest as a slight tweak to the install/first use docs?