[BETA] Hue & Improved - Support for multiple Hue bridges!

Can’t find bulbs :frowning: reinstalled the devices twice. Am I doing something wrong?

Probably not. Can you paste some logs? Do you have a v1 or v2 SmartThings hub? I haven’t tested at all on v1.

Hue Bridge (192.168.2.153) (Device) Events — displayed | all | from device
Date Source Type Name Value User Displayed Text
2016-06-05 4:09:59.296 AM SGT
30 minutes ago DEVICE username nsvQvISjxcGEoZUvyVUtp3wgywgrt… Hue Bridge (192.168.2.153) username is nsvQvISjxcGEoZUvyVUtp3wgywgrtKTJ0jyEqRfV
2016-06-05 4:09:59.257 AM SGT
30 minutes ago DEVICE serialNumber 00178824eb0e Hue (192.168.2.153) serial number is 00178824eb0e
2016-06-05 4:09:59.218 AM SGT
30 minutes ago DEVICE networkAddress 192.168.2.153 Hue Bridge (192.168.2.153) network address is 192.168.2.153

Settings
Name Type Value
Event Subscriptions
Name Handler Filter Source
locationHandler false house!!! (Location)
itemDiscovery itemDiscoveryHandler true Hue Bridge (192.168.2.153)
Application State
Name Value
bridgeRefreshCount 55
creatingDevices false
doingSync false
inItemDiscovery 305A3ACAED64
installed true
itemDiscoveryComplete false
itemRefreshCount 5
linkRefreshcount 14
linked_bridges {uuid:2f402f80-da50-11e1-9b23-00178824eb0e={ssdpUSN=uuid:2f402f80-da50-11e1-9b23-00178824eb0e, itemsDiscovered=false, networkAddress=C0A80299, ssdpNTS=null, serialNumber=00178824eb0e, bulbs={}, deviceAddress=0050, mac=305A3ACAED64, hub=4778acfe-b120-452e-8ae1-acb8f21e7093, ssdpPath=/description.xml, ssdpTerm=urn:schemas-upnp-org:device:basic:1, stringCount=04, scenes={}, verified=true, name=Philips hue (192.168.2.153), devicetype=04, groups={}}}
numDiscoveryResponses 0
params {id=494688c6-f5d0-49df-8b4b-451fc11234eb, name=manageBridge, mac=305A3ACAED64}
subscribed true
unlinked_bridges {}

its a v2 hub, and a v2 bridge. I’ve not nothing showing on the live logging

Is this MAC correct? Is that what it says on the bridge? On mine (v1 Hue bridge) the MAC and serial number are the same. If the MAC is not right, remove the app, reboot your ST hub, and try again.

I ran into an issue once where the ST hub ARP table was mapping IP addresses to the wrong MAC addresses.

Edit: Looks like that MAC is for an Asus device, so that looks like the problem. Restarting the ST hub should fix your problems.

I should have seen it. The mac was not correct. i was running the bridge of a asus wifi extender and it was picking up the mac of the extender not the bridge. I have moved the bridge over to the same router and now the mac is correct.

I’ve rebooted everything twice, and now running discovery on the devices, but still no dice.
Thanks for the quick help so far btw… I’m sure once i get this running it’ll be awesome.

Date Source Type Name Value User Displayed Text Changed
2016-06-05 3:47:38.737 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:47:38.669 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:47:23.267 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:47:23.211 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:47:07.821 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:47:07.752 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:46:52.639 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:46:52.587 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:46:37.219 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:46:37.154 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:46:21.896 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:46:21.821 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:46:06.443 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:46:06.347 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:45:50.973 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:45:50.903 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:45:35.506 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:45:35.442 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:45:20.026 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:45:19.957 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:45:04.603 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:45:04.530 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:44:48.931 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:44:48.859 PM SGT
moments ago APP_COMMAND discoverItems true
2016-06-05 3:43:21.215 PM SGT
moments ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:43:21.159 PM SGT
5 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:43:05.771 PM SGT
5 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:43:05.698 PM SGT
5 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:42:50.092 PM SGT
6 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:42:50.021 PM SGT
6 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:42:34.218 PM SGT
6 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:42:34.140 PM SGT
6 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:42:18.406 PM SGT
6 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:42:18.335 PM SGT
6 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:42:02.996 PM SGT
6 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:42:02.938 PM SGT
6 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:41:47.093 PM SGT
7 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:41:47.025 PM SGT
7 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:41:31.808 PM SGT
7 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:41:31.726 PM SGT
7 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:41:16.220 PM SGT
7 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:41:16.155 PM SGT
7 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:41:00.035 PM SGT
8 minutes ago COMMAND discoverItems discoverItems command was sent to Hue Bridge (192.168.2.153) true
2016-06-05 3:40:59.962 PM SGT
8 minutes ago APP_COMMAND discoverItems true
2016-06-05 3:40:53.933 PM SGT
8 minutes ago DEVICE ENTITY_UPDATE DeviceCreated false
2016-06-05 3:40:53.917 PM SGT
8 minutes ago DEVICE username FwSM5owZgf8bZSz1kAl7hyX8Og4TV… Hue Bridge (192.168.2.153) username is FwSM5owZgf8bZSz1kAl7hyX8Og4TV1Smx6WfQQv3 true
2016-06-05 3:40:53.869 PM SGT
8 minutes ago DEVICE serialNumber 00178824eb0e Hue Bridge (192.168.2.153) serial number is 00178824eb0e true
2016-06-05 3:40:53.818 PM SGT
8 minutes ago DEVICE networkAddress 192.168.2.153 Hue Bridge (192.168.2.153) network address is 192.168.2.153 true

Current States
serialNumber: 00178824eb0e
networkAddress: 192.168.2.153
username: FwSM5owZgf8bZSz1kAl7hyX8Og4TV1Smx6WfQQv3

vent Subscriptions
Name Handler Filter Source
locationHandler false house!!! (Location)
itemDiscovery itemDiscoveryHandler true Hue Bridge (192.168.2.153)
Application State
Name Value
bridgeRefreshCount 7
creatingDevices false
doingSync false
inItemDiscovery 00178824EB0E
installed true
itemDiscoveryComplete false
itemRefreshCount 0
linkRefreshcount 4
linked_bridges {uuid:2f402f80-da50-11e1-9b23-00178824eb0e={ssdpUSN=uuid:2f402f80-da50-11e1-9b23-00178824eb0e, itemsDiscovered=false, networkAddress=C0A80299, ssdpNTS=null, serialNumber=00178824eb0e, bulbs={}, mac=00178824EB0E, deviceAddress=0050, hub=4778acfe-b120-452e-8ae1-acb8f21e7093, ssdpPath=/description.xml, ssdpTerm=urn:schemas-upnp-org:device:basic:1, stringCount=04, scenes={}, verified=true, name=Philips hue (192.168.2.153), devicetype=04, groups={}}}
numDiscoveryResponses 0
params {id=f9dbe80c-93d1-4fa5-9c15-ddb412ca6412, name=manageBridge, mac=00178824EB0E}
subscribed true
unlinked_bridges {}
Scheduled Jobs
None

I did some tinkering since this morning and got a new hue v2 bridge.

Sorry for all the trouble but I’m not at all familiar with programming, just tinkering.

I was suspecting it might be network related with the way I have set thinks up with wireless repeaters and what not in my house.

Firstly the brand spanking new bridge fired right up on the hue and improved app. Connected to the main router. It added bulbs and scenes. No problems.

The old bridge was moved to the router and it too was found - but again I couldn’t add lights and scenes. Multiple tries and correct Mac addresses were displayed but nothing found on the old hue bridge.

The old hue bridge fired right up with hue connect and found the lights- but not in hue and improved.

I’m pretty stumped.

Now I’m quite sure it’s not network. Perhaps the bridge?

Solved somewhat.

I have reset the problematic bridge to factory settings and it has worked.

What an adventure:)

Thanks for the support. Will continue to monitor

Glad you got it working. I wonder what the bridge was doing that was causing problems. Maybe some incompatible bulb? Do you only have Hue bulbs or do you have others added to it as well?

Just hue bulbs.

On reflection, I believe this was due to a large amount of scenes on the bridge which was upgraded and transferred to it from a v1 bridge upgrade, which I just left there and never used

After resetting to factory settings, it picked right up.

Hopefully my rambling and trial and error will help someone installing this in future.

discovery of new bulbs / scenes have stopped working for me… any idea why?

I think I have 1 faulty hub… Sigh

1 Like

App looks really good the only issue I have is that when I turn my hue group back on it always sets brightness to 100% rather than back to where it was. Other than this, great app.

This is a really great smartapp, thanks for developing! It is the only way I’ve found to successfully connect 2 hue bridges to SmartThings and have it work.

There has been a recent thread about a hue “heartbeat” in the official Hue integration that will inform the SmartThings hub when a light is switched locally or with another app. This prevents waiting for the 5 minute poll to know when a light is turned on or off.

I noticed this SmartApp relies on polling the hub every 5 minutes to know light status. Would it be possible to integrate the “heartbeat” functionality that is described in the following thread?

This is a minor issue and the ability to use 2 bridges is much more important to me than instantly knowing light status. Thanks again for developing and sharing this SmartApp!

Has anyone else had any success using any other method to connect 2 hue bridges to SmartThings?

I no longer maintain this app. Check out [UPDATED JAN 2017] Hue B Smart (Groups & Scenes) - Remove Popcorn Effect!. It is based on mine, and can handle multiple bridges, and is currently actively maintained. Not sure if it has the heartbeat functionality integrated, though. I now use that app instead of my own.

Thanks Alan. I appreciate the updated info, the app still works great regardless. I will transition my setup to the app you recommended. There wasnt much info around on running mutiple hue bridges and this was the first working app I came across in the community. Hopefully, if someone comes to this thread in the future, they will find Hue B Smart as well.

Thanks again!

As a follow-up to the last post, I had a hard time transitioning to the mentioned Hue B Smart App.

After removing the Hue & Improved app and all of the devices, I installed the Hue B Smart app and connected both of my bridges. I then started adding all of the bulbs through the setup process. So far, so good. Then, during discovery, the SmartThings app started crashing after discovering about 30 of my 100 lights. I removed all of the lights and had to go back and add them 25 at a time so SmartThings wouldn’t crash.

I finally have all 100 bulbs showing up and discovered after adding 25 at a time, but the performance of the Smartthings app and the performance of the lights is pretty poor.

I had no issues installing Hue & Improved, and the performance of SmartThings and the lights was great. It’s too bad you don’t maintain it anymore.

I’m not sure of the best method to control both of my bridges and 100 lights with ST… I hope the performance of the hub and app improve. I never had these issues before with over 100 Z-wave devices and ST… starting to think that the transition to hue bulbs was alluring but maybe not the best idea. :frowning:

It sounds like you’re using an old version of Hue-B-Smart. You add them one at a time in the new one, just like in my app. Make sure you’re using the one from this repo: https://github.com/tmleafs/Hue_B_Smart

Using the exact repo you linked and usign the github integration to pull in the SA and DHs.

What do you mean I add them one at a time… ? After connecting the bridges, I tap each bulb individually to import them, yes, but later when I go to “Add a Thing” (perhaps to add a zwave device or something else)… ST “rediscovers” the bulbs… this is when the ST app was crashing.

Also… with my color hue bulbs, when I press the “Reset” button in the device screen (between the “Flash” button and the “Color Cycle” buttons) the bulb turns green. All of the color hues, saturations, and temps seem pretty out of whack. Does this happen with your setup or a sign something is really wrong with my install?

Thanks!