Yes, it’s another Hue controller. The main reason for this is support for multiple Hue bridges. All the existing apps I’ve seen only support one bridge, and the code for that is deeply entrenched throughout the entire app. It took a lot of reworking of the app structure to support multiple bridges. The app supports bulbs, scenes, and groups.
I will update this post with better instructions later, but if you’ve used a Hue app for SmartThings before, this mostly should be pretty self-explanatory.
Installation instructions
Remove any Hue app and devices you may already have installed.
Install the devices in the IDE: Code
Optionally, you may use github integration to install. It’s probably easier that way.
Go to Marketplace -> SmartApps -> My Apps and install “Hue & Improved”. On initial installation, it directs you do just tap Done and then proceed to Menu->SmartApps->Hue & Improved to set up.
THERE WILL BE BUGS
This is Beta. I’m sure there will be plenty of bugs to be found.
One issue that exists right now: If you go to Things, and tap on the Hue Bridge, it causes the Android SmartThings app to crash. This does not seem to affect the iOS app.
I develop with Android and don’t have regular access to an iOS device. Some of the display options on iOS probably look wrong. If so, please send me screenshots.
I’m sure there’s a lot left to do, so don’t hesitate to offer suggestions. Planned additions:
A way to change transition time of state changes.
The ability to add an “all bulbs” group to control them all at once.
SuperGroups and SuperScenes: Ability to combine groups and scenes from multiple bridges and have them act just like the standard Group and Scene devices.
Hi Alan, thanks for this, needed it. i am getting an error though when i create a light automation that does a setlevel, it gives an error on the bridge device debug log and sets the lamp to off…
Error: [[error:[address:/lights/5/state/bri, description:parameter, bri, is not modifiable. Device is set to off., type:201]]]
@dudz40 Are you still using this? How’s it working for you? Any suggestions?
I made some changes today with how you choose which bulbs, scenes, and groups to add. Instead of using settings and then running into the 20 second time limit if you choose too many, you now add them one at a time. It probably takes a little longer, but it’s still pretty quick.
Yes, in use. No issues, i could live with the 5 at a time. I will add some bulbs in the near future so will update to ew code and will let you know how it went.
Additions of new new devices work great! found something that you might want to change. I am doing a setcolor and level through the smartthings automation app. the device code is setting the bri to 254 always if a setcolor is detected. did a small change to include the bri… c below.
def setColor(value) {
def hue = parent.scaleLevel(value.hue, true, 65535)
def sat = parent.scaleLevel(value.saturation, true, 254)
def bri = parent.scaleLevel(value.level, true, 254)
log.debug “Setting color to [${hue}, ${sat}, ${bri}]”
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
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
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?
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?