Jump to content

Hue Bridge Listed in ISY but not Lights


Chevelle

Recommended Posts

I recently put PolyGlot v2 on a RPi4 and added Hue and Ecobee node servers.  All was well until I accidentally deleted the Hue bridge from the ISY listing.  I attempted to start over by deleting the Hue node server from PolyGlot and loading it.  Now the Hue bridge shoes up but not the two bulbs I have.  (They are in Hue app just fine and I can control them.)

Here is some of the log entry...

2020-03-02 13:29:53,601 [Controller] [INFO ] Disconnecting from MQTT... localhost:1883
2020-03-02 13:29:53,603 [Controller] [INFO ] MQTT Graceful disconnection.
2020-03-02 13:29:53,603 [Controller] [INFO ] Hue NodeServer is stopping
2020-03-02 13:30:24,408 [MainThread] [INFO ] Received Config from STDIN.
2020-03-02 13:30:24,409 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.34 Starting...
2020-03-02 13:30:24,416 [MainThread] [DEBUG] gws: {'default': {2: ('10.0.1.1', 'eth0')}, 2: [('10.0.1.1', 'eth0', True), ('10.0.1.1', 'wlan0', False)]}
2020-03-02 13:30:24,417 [MainThread] [DEBUG] gw: default=('10.0.1.1', 'eth0')
2020-03-02 13:30:24,417 [MainThread] [DEBUG] ifad: eth0=[{'addr': '10.0.1.51', 'netmask': '255.255.255.0', 'broadcast': '10.0.1.255'}]
2020-03-02 13:30:24,417 [MainThread] [INFO ] Connect: Network Interface: {'addr': '10.0.1.51', 'netmask': '255.255.255.0', 'broadcast': '10.0.1.255'}
2020-03-02 13:30:24,418 [Interface ] [INFO ] Connecting to MQTT... localhost:1883 2020-03-02 13:30:24,419 [MainThread] [INFO ] Started Hue Protocol
2020-03-02 13:30:24,445 [Interface ] [INFO ] MQTT Connected with result code 0 (Success) 2020-03-02 13:30:24,446 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/ns/3 - MID: 1 Result: 0
2020-03-02 13:30:24,446 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot - MID: 2 Result: 0
2020-03-02 13:30:24,446 [Interface ] [INFO ] Sent Connected message to Polyglot 2020-03-02 13:30:24,499 [Interface ] [INFO ] Adding node Hue Bridge(huebridge)
2020-03-02 13:30:24,499 [Interface ] [INFO ] Waiting on Controller node to be added....... 2020-03-02 13:30:24,500 [NodeServer] [INFO ] Saved bridges information is not found
2020-03-02 13:30:24,500 [NodeServer] [INFO ] No bridge configuration found, trying discovery... 2020-03-02 13:30:24,500 [NodeServer] [INFO ] Attempting to connect to the bridge...
2020-03-02 13:30:24,516 [NodeServer] [INFO ] Using ip from config: 10.0.1.2 2020-03-02 13:30:24,516 [NodeServer] [INFO ] Using username from config: ZRMhi8nSLSqtUk70PV6XHdM8Ecg6nnZZlk34dLbz
2020-03-02 13:30:24,527 [NodeServer] [INFO ] Connection OK
2020-03-02 13:30:24,529 [NodeServer] [INFO ] Saving usernames to DB 2020-03-02 13:30:24,530 [NodeServer] [INFO ] Sending customData to Polyglot.
2020-03-02 13:30:24,530 [NodeServer] [INFO ] Hub 10.0.1.2 Starting Hue discovery...
2020-03-02 13:30:24,544 [NodeServer] [INFO ] Hub 10.0.1.2 1 bulbs found. Checking status and adding to ISY if necessary.
2020-03-02 13:30:24,547 [NodeServer] [ERROR] Exception in thread NodeServer: Traceback (most recent call last):
    File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
        self.run()
    File "/usr/lib/python3.7/threading.py", line 865, in run
        self._target(*self._args, **self._kwargs)
    File "./hue.py", line 45, in start
        self.discover()
    File "./hue.py", line 150, in discover
        self._discover(idx)
    File "./hue.py", line 167, in _discover
        for lamp_id, data in self.lights[hub_idx].items():
    AttributeError: 'list' object has no attribute 'items'

 

Something's not right.

 

Link to comment
Share on other sites

I resolved the problem but unfortunately can't be of much help if anyone else has this problem.  I ended up doing a complete re-setup of the Pi and a reinstall of PolyGlot.  It is working now and things are stable so I hopefully won't have to do that again.  I am looking forward to adding more node servers to go along with the Hue and ecobee that I have now.

Link to comment
Share on other sites

  • 2 months later...

Any tips on getting PolyGlot to install correctly on the RPI4? My install appears to work, but then I can't access it via the web browser. I followed all of the instructions so I'm curious if you had to do anything special for the RPI4?

Link to comment
Share on other sites

  • 2 weeks later...

I'm having the same trouble, but using a Polisy box. What am I missing? There seems to be scant documentation, can somebody let me know where to start?

I have:

[01] ISY Portal (Network)

[02] Hue (Network)

Configuration shows

Profile Name Hue

User ID polyglot

Password (empty)

Base URL /ns/2

Host Name 10.0.1.4 (which is where my Polisy is - I guess I could fill-in polisy.lan)

SSL checked

SNI (what's that?) not checked

Port 443

Timeout 0

Isy User 0

Do I need some password here?

What is Isy User, can be set to a number.

I have Hue Bridge shown under Network/ISY/Hue Bridge. No idea what to do with it. I can Query,. rename, etc. Add to Scene does nothing useful. I assume I should see some lights?

 

Link to comment
Share on other sites

Just noticed the "Re-Discover Bulbs" button in ISY Control Panel. Swear it wasn't there before!

But it does nothing. Just quickly pops up a window which immediately closes. I can't even read what the window says.

I pressed the button on the bridge. But not sure if I am supposed to hold it down for some time or what? The lights don't change, should they?

Link to comment
Share on other sites

So, Under Node Servers, Hue, there is Add Node and Add All Nodes. But no clue what to fill in to any of this. It wants name, Node Address Primary Node Address.

Where do I get these?

Add All Nodes does nothing.

Is there some beginners guide?

Note that I JUST installed 5.0.16C coming from 4.x. So completely new to Polyglot.

And I don't seem to see anything really useful that I can/should do in Polisy configuration.

Link to comment
Share on other sites

Got it!

In Polisy page for Hue server, I noticed a green message at the top to press the button on the Hue Bridge and restart the server within 30 seconds.

Either I didn't notice it before, or it WASN'T there.

Anyway, did that, and the ISY994i magically populated with my Hue devices and scenes.

Now, wish I knew exactly what I'd done in what order.

Link to comment
Share on other sites

  • 3 months later...

I'm in the same state @jtara92101 was in earlier -- my Hue Bridge shows up in ISY, but I can't get the individual lights to show up.  The green message mentioned above does not show up in my Polisy UI, though I tried the button press, as described above, and it does nothing.

Is there a simple cookbook procedure for adding and working with the Hue NodeServer?   Thanks?

Link to comment
Share on other sites

Having similiar issues. None of my Hue devices were working in ISY so I uninstalled the Nodeserver (had 43 bulbs) and reinstalled it. Nothing came back except the Bridge. Pressing the button on the Bridge and restarting the node server does not cause the bulbs to populate. What am I doing wrong?

2020-09-15 00:44:40,443 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot - MID: 2 Result: 0

2020-09-15 00:44:40,444 [Interface ] [INFO ] Sent Connected message to Polyglot

2020-09-15 00:44:40,562 [NodeServer] [INFO ] Saved bridges information is not found

2020-09-15 00:44:40,563 [NodeServer] [ERROR] Failed to read bridges variable ['192.168.0.24.] Expecting value: line 1 column 2 (char 1)

2020-09-15 00:46:56,114 [Interface ] [INFO ] Disconnecting from MQTT... localhost:1883

2020-09-15 00:46:56,117 [Interface ] [INFO ] Hue NodeServer is stopping

2020-09-15 00:46:56,119 [Interface ] [INFO ] MQTT Graceful disconnection.

2020-09-15 00:47:06,326 [MainThread] [INFO ] Received Config from STDIN.

2020-09-15 00:47:06,329 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.34 Starting...

2020-09-15 00:47:06,361 [MainThread] [DEBUG] gws: {'default': {2: ('192.168.0.1', 'igb0')}, 2: [('192.168.0.1', 'igb0', True)]}

2020-09-15 00:47:06,362 [MainThread] [DEBUG] gw: default=('192.168.0.1', 'igb0')

2020-09-15 00:47:06,363 [MainThread] [DEBUG] ifad: igb0=[{'addr': '192.168.0.10', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}]

2020-09-15 00:47:06,364 [MainThread] [INFO ] Connect: Network Interface: {'addr': '192.168.0.10', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}

2020-09-15 00:47:06,367 [Interface ] [INFO ] Connecting to MQTT... localhost:1883

2020-09-15 00:47:06,433 [MainThread] [INFO ] Started Hue Protocol

2020-09-15 00:47:06,541 [Interface ] [INFO ] MQTT Connected with result code 0 (Success)

2020-09-15 00:47:06,542 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/ns/3 - MID: 1 Result: 0

2020-09-15 00:47:06,543 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot - MID: 2 Result: 0

2020-09-15 00:47:06,544 [Interface ] [INFO ] Sent Connected message to Polyglot

2020-09-15 00:47:06,915 [NodeServer] [INFO ] Saved bridges information is not found

2020-09-15 00:47:06,971 [NodeServer] [ERROR] Failed to read bridges variable ['192.168.0.24.] Expecting value: line 1 column 2 (char 1)

Link to comment
Share on other sites

  • 4 weeks later...

It looks like there is a configuration file in Polisy that has an incorrect IP address for my Hue bridge in it. Uninstalling the Node Server and re-installing it does not appear to refresh the config file. I also don't see where it is to manually edit it. How can I completely purge information for a deleted Node server from Polisy so I can get a new clean install? There must be some sequence of deleting the Node server and rebooting Polisy that should work but I can't seem to find it. Anybody know how I can clean up the config and get this working?

Edit: I did finally get my 43 Nodes back by changing the Bridge address to match the one the log said is listed in a config file but that is not the address I want to use for the bridge. There must be some easy procedure to change the bridge address reference in Polisy to match any new address I want to move the bridge to? If there is a config file to edit why not provide access to the config file from a drop down menu? Better yet have a drop down to reset the bridge address manually from the GUI. If nothing else then a simple procedure to purge outdated info from the config file so a fresh node server install can be done without picking up any old baggage from the deleted one.

Link to comment
Share on other sites

1 hour ago, upstatemike said:

I spoke too soon. Only 25 of the 43 devices discovered by the Hue Node Server actually got created in the ISY. There is still something fundementally wrong with my setup but I don't know where to go from here.

Didn't the early Hue hubs have a secret  max devices spec on them that was revealed when the new hub came out?

Link to comment
Share on other sites

54 minutes ago, larryllix said:

Didn't the early Hue hubs have a secret  max devices spec on them that was revealed when the new hub came out?

I found this at https://www.smarthomepoint.com/hue-bridge-50-bulb-limit/ 

"The Hue Bridge – with an advertised 50 bulb limit – actually has a hard limit of 63 lights (and 62 accessories), however you may start having performance issues above 40-45 lights and above 12 accessories. Buying a second Hue Bridge is the only real solution, even though this has some issues in itself."

For my situation it is not a performance issue but rather a devices not showing up issue and I am safely within the 63 device hard limit for that.

Link to comment
Share on other sites

  • 2 weeks later...

I am also having difficulty with my Hue Bridge and my ISY not showing any bulbs. When I restart my Node server and look at the log it says 1 bulb found (which isn't all of them) but I can't seem to find the found bulb in the ISY.

Any thoughts or tips or should I file a ticket about this issue?

Link to comment
Share on other sites

 

On 10/26/2020 at 10:12 AM, Michel Kohanim said:

@jmpnjimbob,

Please try sorting your nodes by name and retry.

With kind regards,
Michel

Thanks for the tip, but if by sorting my nodes by name you're meaning the bulbs themselves, I'm not showing anything but the HUE Bridge on my ISY. I do see errors in the log file of the Hue nodeserver on the Polisy so I'm guessing that I ought to probably submit a ticket on this (including the log file).

Link to comment
Share on other sites

  • 11 months later...
On 10/10/2020 at 8:09 PM, upstatemike said:

It looks like there is a configuration file in Polisy that has an incorrect IP address for my Hue bridge in it. Uninstalling the Node Server and re-installing it does not appear to refresh the config file. I also don't see where it is to manually edit it. How can I completely purge information for a deleted Node server from Polisy so I can get a new clean install? There must be some sequence of deleting the Node server and rebooting Polisy that should work but I can't seem to find it. Anybody know how I can clean up the config and get this working?

Edit: I did finally get my 43 Nodes back by changing the Bridge address to match the one the log said is listed in a config file but that is not the address I want to use for the bridge. There must be some easy procedure to change the bridge address reference in Polisy to match any new address I want to move the bridge to? If there is a config file to edit why not provide access to the config file from a drop down menu? Better yet have a drop down to reset the bridge address manually from the GUI. If nothing else then a simple procedure to purge outdated info from the config file so a fresh node server install can be done without picking up any old baggage from the deleted one.

@upstatemike

I have the identical issue regarding the incorrect IP address for my Hue bridge in the Node Server on Polisy.  Did you ever solve this issue?

Link to comment
Share on other sites

10 hours ago, Isybella said:

@upstatemike

I have the identical issue regarding the incorrect IP address for my Hue bridge in the Node Server on Polisy.  Did you ever solve this issue?

No. I ended up leaving the address of the Hue bridge where it was and just worked around it. Have not had time to go back and revisit this. Still irritates me that there is not someplace in the GUI where I can go and just edit the address entry that the node server is referencing to find the bridge.

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...