You can connect directly to the ST Hub, but if I’m not mistaken you won’t be able to use this SmartApp (because it depends on the Hue Hub), and you’ll have to install a custom device handler through the IDE. Also, your Hue bulbs will be forever paired with your ST Hub afterward, unless you buy a Lutron (I think) remote that can unpair the bulb from the hub.
Ya, I just got it paired directly, and it seems to work just fine.
I will check into the whole disconnecting issue, as well as the part about getting a remote to reset them, etc.
Thanks!
@infofiend thank you for building such a cool smartapp!!
I have just installed it on a smartthings v1 hub and while it is easy to set up and it works I notice the switching on of lights/scenes can be very laggy (10 secs +) or not happen at all. The native Philips Hue App is very fast so I assume the problem is with the smartthings side of things? Have you heard of this problem before and do you have any idea on how to solve?
Thanks in advance and thanks for your contributions to the community!
Gary
I gave HLGS a try last night as it looks like what I’ve been looking for for a while. I do however have a critical problem with it…
I have two Hue bridges (because I have 80+ Hue devices), let’s call the bridges 119 and 143 (it’s their IPs). At first the HLGS app discovered both bridges just fine. I’ve selected 119, the one I want HLGS to control. I was able to see all the bulbs, groups and scenes on that bridge just fine and add the devices to ST. So far so good…
The problem arose about an hour later when I’ve noticed that I’ve lost control of all those devices. I went back to the HLGS to find out that it’s now the other bridge (143) that is selected. If I switch it back to 119, it will now show that it is selected, but once I click “Done” and open the app again, I can see it had reverted back to 143. I can’t make it stick to 119.
Is there a way I can make it “forget” 143 or force 119? Any thoughts?
Hmmm. I’ve never had two Hue Hubs on one account. Were you able to connect and properly control both using the stock Hue (Connect) smartapp?
Have you set static IP addresses for each Hue Hub in your LAN?
Yes, I can control both bridges just fine with the Philips official app and other third party apps like OnSwitch and LightBow. It also work fine with the official Hue (Connect) ST app, but it can only control one bridge (which is fine).
Yes, the IPs are static.
Thanks
Is there a place in the app or device source code where I could hard code the IP address? I don’t mind a quick and dirty fix.
Right now I can make it work if I unplug the bridge I don’t want it to use, but if I plug it back, it will start using the wrong bridge in a matter of a few minutes.
Btw- the original official Hue (Connect) app had the same issue with multiple bridges, but it has been fixed at some point last year.
I’ve switched to “Hue & Improved” and it works fine with multiple bridges. Thank you for trying with HLGS tho, it shows a lot of potential!
HOW DARE YOU USE AN APP THAT IS NAMED SO MUCH BETTER THAN MINE!!!
Now my whole weekend is going to be ruined by me trying to come up with clever puns so I can give my app a hue name.
As in, “Hue do you think you are?”
AS IN:
“Hue Don’t Know Jack”
“Hue Don’t Know Who You’re Dealing With”
“It’s Not Me, It’s Hue.”
Yes, I have been thinking about this…
I thought is was “It’s not Hue, it’s me”. Hmmmm:
- “Hue’s the Boss?”
- “Hue Are You?”
- “Hue’s Next”
- “Hue’ll Stop the Pain?” (apologies to CCR)
- “Hue Knew?”
- “Hue Am I?”
- “Hue’s Cheatin’ Hue?”
- “Hue Sez?”
- “Hue You Gonna Run To?”
Hilarious.
Hu-E Lewis and the News
How Hue Doin’?!
Hue Drive Me Crazy
All I Want is Hue
Huethless
Huethanasia
Hue’ve Lost That Lovin Feeling
Hue Are So Beautiful
Hue’re Still the One
Hue’ve Got a Friend
Hue Win
Hue Spin Me Round
Hue Got Me
Hue Really Got Me
Hue Broke My Heart
Hue Bet Your Life
Hue Ain’t Seen Nothing Yet
Hue and Me
Hue Do You Love?
Who’s Lovin’ Hue?
Why Can’t I Be Hue?
@infofiend: thanks for the nice app. Installed, all seems to be more or less working except for scenes. Some scenes just don’t work. No matter what I try to do, lights just ignore presses on the push button of scene devices. Yet some other scenes working perfectly fine without any issues.
Any suggestions of what it could be? Tried looking through logs, but no error messages. Made sure I always added less than 20 items. Nothing helps. Some scenes work, for others nothing happens. Checked all device IDs, everything is correct. Other scenes for these devices work fine. Issue is not with the same devices, but rather randomly some scenes don’t work.
That is a new one. It’s hard for me to figure out what might be happening without seeing the log from ide. I will be glad to take a look if you pm me the portion of your log following (1) when a scene works and (2) when a scene does not work
Tony
Thanks Tony. Which logs exactly do you need? I am guessing from the Push Buttons of respective scenes that work and do not work?
Here are the logs that appear within 1 minute of pressing the push buttons:
Scene push button: Savanna sunset Kitchen (never works)
03f64177-6ea7-4ae4-890a-d88f387d9760 08:22:53 BST: debug parse() - [name:lights, value:[8, 9], isStateChange:true, displayed:true, linkText:Hue Lights and Groups and Scenes (OH MY), descriptionText:Hue Lights and Groups and Scenes (OH MY) lights is [8, 9]]
03f64177-6ea7-4ae4-890a-d88f387d9760 08:22:53 BST: debug parse() - [name:name, value:Savanna sunset, isStateChange:true, displayed:true, linkText:Hue Lights and Groups and Scenes (OH MY), descriptionText:Hue Lights and Groups and Scenes (OH MY) name is Savanna sunset]
03f64177-6ea7-4ae4-890a-d88f387d9760 08:22:49 BST: trace LOG FROM PARENT>Group path = groups/0/action/
03f64177-6ea7-4ae4-890a-d88f387d9760 08:22:49 BST: trace LOG FROM PARENT>HLGS: setToGroup: sceneID = PMWnPngHfq9E6ss
03f64177-6ea7-4ae4-890a-d88f387d9760 08:22:49 BST: trace LOG FROM PARENT>Device ID returned (based on SPLIT ‘/’) is PMWnPngsHfq9E6ss.
03f64177-6ea7-4ae4-890a-d88f387d9760 08:22:49 BST: trace LOG FROM PARENT>HLGS: Executing getId
03f64177-6ea7-4ae4-890a-d88f387d9760 08:22:49 BST: trace LOG FROM PARENT>HLGS: setToGroup with inGroupID of 0.
Scene push button: Spring blossom Kitchen (always works perfectly)
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:47 BST: debug parse() - [name:name, value:Spring blossom, isStateChange:true, displayed:true, linkText:Hue Lights and Groups and Scenes (OH MY), descriptionText:Hue Lights and Groups and Scenes (OH MY) name is Spring blossom]
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:44 BST: debug parse() - [name:lights, value:[8, 9], isStateChange:true, displayed:true, linkText:Hue Lights and Groups and Scenes (OH MY), descriptionText:Hue Lights and Groups and Scenes (OH MY) lights is [8, 9]]
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:44 BST: debug parse() - [name:name, value:Spring blossom, isStateChange:true, displayed:true, linkText:Hue Lights and Groups and Scenes (OH MY), descriptionText:Hue Lights and Groups and Scenes (OH MY) name is Spring blossom]
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:40 BST: trace LOG FROM PARENT>Group path = groups/0/action/
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:40 BST: trace LOG FROM PARENT>HLGS: setToGroup: sceneID = PX2Q5SXCaqmuwlQ
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:40 BST: trace LOG FROM PARENT>Device ID returned (based on SPLIT ‘/’) is PX2Q5SXCaqmuwlQs.
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:40 BST: trace LOG FROM PARENT>HLGS: Executing getId
34d07342-c664-4221-8a88-a5c4157b1c6f 08:25:40 BST: trace LOG FROM PARENT>HLGS: setToGroup with inGroupID of 0.
Both of these scenes for the same lamps inside Philips Hue second generation app work flawlessly. I have tried adding/removing your SmartApp completely cleaning all scenes, groups, bulbs out and adding them again to ST, but always endup with the same result.
One more peculiar thing - the same scenes also exist for other groups of bulbs (because Philips Hue app creates them by default for each group of bulbs), but there its the other way around, those scenes that didn’t work for the other group would work perfectly for the next group and vice-versa.
@infofiend: tried assigning unique names to all scenes - didn’t help. Tried recreating scenes - sometimes helps, sometimes doesn’t. Really annoying is that after choosing which scenes to add to ST 3-4 times (each time just choosing 3-4 new scenes to add) I get the error “Failed to save page: sceneDiscovery” and there doesn’t seem to be any way out of it other than deleting the entire app and recreating it again. Its fine and I can do that a few times now, but going forward, once I configure lots of SmartApps on Hue Lights, its no longer so simple to delete and recreate them - its hours or days of work. I am really afraid of getting stuck like this - with the builtin ST app at least there is no issue like that. Do you know a work around this problem other than “fix your scenes at the time of smartapp installation and never change them after that”?
Here is the error message I see from the IDE of the smartapp when this starts happening:
40ebd1ce-c17a-4c96-af1c-8024481b7733 09:54:01 BST: error java.lang.NullPointerException: Cannot get property ‘hub’ on null object
Maybe this is the wrong App for this (but maybe not). I have to setup the v2 hub as the v1 hub went on the fritz and since I am restarting the entire thing I wondered if this app would help do something really cool with the Hue bulbs I have.
There is an app in the app store called espresso for hue and the one thing it does very well is that it creates scenes with lights that subtly rotate the color/hues of the lights. I realize this can ‘sort of’ be manually done in Hue or ST, but the color/hue changes are more abrupt and don’t necessarily loop.
For example, at night when I walk into my kitchen I have a hue strip next to the refrigerator come on. This way I have a small amount of light if I need a drink of water. For an effect it would be cool if the light subtly and slowly (over 3 minutes) changed from a dark blue to a light blue and back again and just kept going in a loop.
Would this app be capable of this?