Jump to content

Polyglot v2 Hue NodeServer


xKing

Recommended Posts

On 2/17/2019 at 6:26 PM, adamthp said:

Much appreciated!

Yeah I've been curating the old collection for a while now. I'll report back with how they all work. I've been using NRs to control them with good results, but looking to go a little further with the node server. 

Please try the 0.1.8 version of the Hue node server, it should support multiple bridges.

You will need to add a custom configuration parameter named "bridges" with the value like:

["10.0.0.1", "10.0.0.2"]

listing all your bridges IP addresses.

NOTE: there are no other changes except multi bridge support, do not upgrade if you are not willing to fight some bugs that may have lurked in during multi-bridge work :)

Link to comment
Share on other sites

I just got this fired up. Everything was a little grumpy for a while(very slow to respond)... but it seems a couple of restarts here and there has mostly fixed things. The new bridge I added only pulled in one of my groups. All of the groups from my original bridge came in no problem. 

Thanks again for taking the time to make this work for me!

Link to comment
Share on other sites

try the next update, one problem though - you'll need to remove all group nodes from polyglot (using polyglot dashboard) as now it will include the last digit of the bridge's ip address into the group node address.

for example old group address was huegrp1 will now be huegrp221  (if bridge's IP ends with 22)

Link to comment
Share on other sites

Please forgive my ignorance... 

I have polylgot V2 up and running on a raspberry pi.  I am trying to install the hue nodeserver from the nodeserver store in the polyglot V2 interface (hitting the install button).  I get notice that is is installing and then a I get the following error: cloneRepo: Error: runInstallProcess: undefined .  

Here is a copy of the log:

2019-2-24 18:03:43 - info: NSChild cloneRepo: Successfully cloned Hue into NodeServer directory.
2019-2-24 18:03:54 - error: NSChild: Install failed - Non-zero exit code: 127
2019-2-24 18:03:54 - error: NSChild: Hue cloneRepo: Error: runInstallProcess: undefined
2019-2-24 18:03:54 - error: Error: runInstallProcess: undefined
    at runInstallProcess (/snapshot/polyglot-v2/lib/modules/children.js:45:11)
    at <anonymous>
2019-2-24 18:03:54 - error: NSResponse: Success: false - cloneRepo: Error: runInstallProcess: undefined

Any help as to why the error?  I there something I need to do with the bridge before install?  Any help is much appreciated!

JL

Link to comment
Share on other sites

8 minutes ago, xKing said:

Try doing something like

cd ~/.polyglot/nodeservers/Hue

./install.sh

 

see what it says

Per the log:

pi@raspberrypi:~/.polyglot/nodeservers/Hue $  ./install.sh
Collecting polyinterface>=2.0.29 (from -r requirements.txt (line 1))
  Using cached https://www.piwheels.org/simple/polyinterface/polyinterface-2.0.29-py3-none-any.whl
Collecting markdown2 (from polyinterface>=2.0.29->-r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/e4/0c/b5375c1c70adbafd0ded0459fa175468559ee5360219070d2f7fb60b2287/markdown2-2.3.7-py2.py3-none-any.whl
Collecting python-dotenv (from polyinterface>=2.0.29->-r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/8c/14/501508b016e7b1ad0eb91bba581e66ad9bfc7c66fcacbb580eaf9bc38458/python_dotenv-0.10.1-py2.py3-none-any.whl
Collecting paho-mqtt (from polyinterface>=2.0.29->-r requirements.txt (line 1))
  Using cached https://www.piwheels.org/simple/paho-mqtt/paho_mqtt-1.4.0-py3-none-any.whl
Installing collected packages: markdown2, python-dotenv, paho-mqtt, polyinterface
Successfully installed markdown2-2.3.7 paho-mqtt-1.4.0 polyinterface-2.0.29 python-dotenv-0.10.1
./zipprofile: 5: ./zipprofile: zip: not found

 

JL

Link to comment
Share on other sites

I have successfully gotten the nodes (both lights and groups) from the hue bridge to appear in the ISY adm console running hue nodeserver on the  raspberry pi.  After tinkering, I have changed, added, and deleted some groups on the hue bridge via iconnecthue app.  I can not seem to get those new nodes (groups) on the hue bridge to "rediscover" in the admin console.  They also have not updated in the polyglot hue nodeserver.  I have tried both restart and stop and start on the hue nodeserver in polyglot.  Any ideas on how to get the node changes to show up in hue nodeserver on polyglot and also to update in the ISY hue bridge node?  

JL   

Link to comment
Share on other sites

22 hours ago, jlamb said:

I have successfully gotten the nodes (both lights and groups) from the hue bridge to appear in the ISY adm console running hue nodeserver on the  raspberry pi.  After tinkering, I have changed, added, and deleted some groups on the hue bridge via iconnecthue app.  I can not seem to get those new nodes (groups) on the hue bridge to "rediscover" in the admin console.  They also have not updated in the polyglot hue nodeserver.  I have tried both restart and stop and start on the hue nodeserver in polyglot.  Any ideas on how to get the node changes to show up in hue nodeserver on polyglot and also to update in the ISY hue bridge node?  

log?

Link to comment
Share on other sites

On ‎2‎/‎28‎/‎2019 at 6:39 PM, xKing said:

log?

I don't have a current log from the changes.  I was able to get new changes (changes to groups via the app) to sync up but I literally had to delete the nodeserver in polyglot and re-add and then delete the hue node on the ISY and re-add.  This required me having to reenter all hue nodes (and settings) into the scenes they were previously in.  Im guessing I'm doing something wrong.  I'm assuming there is an easier way to sync lights or groups (that have been changed via hue apps) between the hub, nodeserver, and ISY vs deleting everything and re-adding it.  Any suggestions?

JL

Link to comment
Share on other sites

I recently upgraded my Philips Hue bridge from version 1 to version 2.

I had the Hue Polyglot server running before, but now it is not finding my new hub. Is there an easy solution here that I'm missing?

 

Here's my log:

2019-03-04 21:10:47,248 [MainThread] [INFO ] Received Config from STDIN.
2019-03-04 21:10:47,251 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.29 Starting...
2019-03-04 21:10:47,291 [Interface ] [INFO ] Connecting to MQTT... localhost:1883
2019-03-04 21:10:47,293 [MainThread] [INFO ] Started Hue Protocol
2019-03-04 21:10:47,339 [Interface ] [INFO ] MQTT Connected with result code 0 (Success)
2019-03-04 21:10:47,340 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/ns/2 -  MID: 1 Result: 0
2019-03-04 21:10:47,340 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot -  MID: 2 Result: 0
2019-03-04 21:10:47,341 [Interface ] [INFO ] Sent Connected message to Polyglot
2019-03-04 21:10:47,387 [NodeServer] [INFO ] Saved bridges information is not found
2019-03-04 21:10:47,392 [NodeServer] [INFO ] No bridge configuration found, trying discovery...
2019-03-04 21:10:47,392 [NodeServer] [INFO ] Attempting to connect to the bridge...
2019-03-04 21:10:47,432 [NodeServer] [INFO ] Using ip from config: 192.168.1.17
2019-03-04 21:10:47,432 [NodeServer] [INFO ] Using username from config: f2wdhDUL5g7sjXRcUiyh-N-Ij605Ls4Gc7kmo3HE
2019-03-04 21:10:47,449 [NodeServer] [ERROR] Can't contact Hue Bridge. Network communication issue.
2019-03-04 21:10:47,450 [NodeServer] [ERROR] Connect: Failed to read Lights from the Hue Bridge

 

Sorry - I'm a newbie to all of this!

 

Thanks.

 

Link to comment
Share on other sites

Did you assign the new bridge same IP address as an old one? Quickest solution is to reinstall the node server :) But we can try something if you don't really want to go thru that.

Link to comment
Share on other sites

On 3/2/2019 at 9:34 AM, jlamb said:

I don't have a current log from the changes.  I was able to get new changes (changes to groups via the app) to sync up but I literally had to delete the nodeserver in polyglot and re-add and then delete the hue node on the ISY and re-add.  This required me having to reenter all hue nodes (and settings) into the scenes they were previously in.  Im guessing I'm doing something wrong.  I'm assuming there is an easier way to sync lights or groups (that have been changed via hue apps) between the hub, nodeserver, and ISY vs deleting everything and re-adding it.  Any suggestions?

I can't tell without looking at the log where you saying it did not see the new groups.

Link to comment
Share on other sites

On 3/4/2019 at 9:37 PM, xKing said:

Did you assign the new bridge same IP address as an old one? Quickest solution is to reinstall the node server :) But we can try something if you don't really want to go thru that.

I've reinstalled the node server - it still isn't finding the new bridge.

What are my other options to try???

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.5k
    • Total Posts
      367.6k
×
×
  • Create New...