thanks for the information - I will keep an eye on it - I am currently refreshing every 45 seconds and with the few bulbs where this applies (4) it seems to work fine at the moment - been running for a few hours - until there is a working procedure for getting an update from the HUE bridge from external changes (dimmer switch) quicker than 5 minutes I will be hunting for workarounds which this clearly is - an alternative would be using Mood Cube and the Open/Close sensor instead to have manual switches but that doesnt seem to be reasonable though I could think of some fancy looking switches ā¦
Thanks for the great app and device handlers! Iām having a couple issues though:
-
Scenes I create using the Hue app for iOS sometimes cannot be seen by the Reconnect smart app. I have left the SmartThings app searching for extended periods and the scenes donāt show up, even though Iāve verified theyāre created by using the Hue API.
-
It seems like the Reconnect app can only see scenes put onto the Hub by the official Hue app. Iāve tried creating scenes using Hue Lights (a pretty nice Hue app for iOS), and the scenes are never detected. Is there a reason for this behavior?
Anyway, thanks again!
Hi - Hue (re)connect has been working well for me over the last week or so but this morning when I selected the app from within iOS SmartThings it gave me a not authorised error and took me back to the main menu.
When I now select the app I get the spinning timer and then nothing else (ie. stays in the menu of installed SmartApps). In the debug console I am seeing the following :-
11:50:28 AM: trace NON-HUE EVENT devicetype:04, mac:5442493EF137, networkAddress:C0A80192, deviceAddress:C351, stringCount:04, ssdpPath:/Ircc.xml, ssdpUSN:uuid:00000000-0000-1010-8000-
5442493ef137::upnp:rootdevice, ssdpTerm:, ssdpNTS:ssdp:alive
11:50:28 AM: trace Location: devicetype:04, mac:5442493EF137, networkAddress:C0A80192, deviceAddress:C351, stringCount:04, ssdpPath:/Ircc.xml, ssdpUSN:uuid:00000000-0000-1010-8000-5442493ef137::upnp:rootdevice, ssdpTerm:, ssdpNTS:ssdp:alive
11:50:28 AM: error java.lang.NullPointerException @ line 286
I have looked at line 286 in the code but itās a simple date assignment/comparison so I donāt believe this is the issue and I have tried uninstalling the app from within the IDE but receive the following message :-
āThis SmartApp canāt be deleted at this time because it is installed by one or more usersā
Any pointers to getting this great app working again?
Thanks.
James.
Hello, Iām really sorry to ask such a simple question in here, but I just picked up an ST hub and found some limitations. In searching for an answer, I found this thread, which seems to have exactly what Iām looking for! Unfortunately, I havenāt a clue as to how to get it to work. Iām copying the code from github (I click on raw code) and then copy that directly to a new smart app in the code window. It also says in the readme to copy each file from the device directory, so I went into there and copied each of those and placed them into the code window in the smartapp. When I click save and then publish, I get a bunch of errors. Really sorry, but can anyone point a new person in the right direction?
Check out this FAQ
Thank youāmy mistake was in creating device types as well as the program. I got it working now, which is really greatāthank your for the link!
And thank you very much to the creator of thisāIāve read through this entire thread and it looks like a ton of work, it is much appreciated
FYI if anyone like me is interested in using Hue Groups, this has been added in the latest version just be sure to grab the device type also
Thanks @Fuzzyligic for your contribution
Yes because Iām filtering out the scene to fetch only the one that get created by the Hue App.
All the scenes created with the Hue App have a name like " on " where the is the name scene and the is the transition time if any (otherwise itās 0).
Iām using this because from the Hue App when you trigger a scene to Off it will create another scene like " off " that I tried to fetch from HueReconnect to be able to turnoff a scene.
This can also be done by hand (from another app for example):
Create a scene with name "myscene on 0"
Create an opposite scene (setting all the lights to off) with name āmyscene off 0ā
Then you should be able to see the scene and add it as well as the Off related scene.
@bobfather word of warning the name from hue v1.4 is a maximum of 32 characters but that includes the " on 0" and " Off 0" so that means your name for your scene should be no longer than 26 characters otherwise the " on 0" and " Off 0" will not be appended properly, i hit this problem, so just started using Codes for my Scenes that i want in ST like STLRBlPiYe ( i.e Living Room Blue Pink Yellow) then i just rename in the ST app once added.
Hello Fuzzy!
I installed it, it seems to look for the group in the hue hub. So I have the create the groups in the hue app? I canāt find whereā¦
Thanks!
I seem to be having a strange issue with linking my Hue bridge with this app. I have all five device handlers installed and published as well as the latest SmartApp but no matter what I get an Upgrade Needed error when I try to install this SmartApp. both my Hue bridge and my SmartThings hub are up to date. I can add my bridge and control my individual lights just fine with the stock Hue Connect SmartApp. I was having this issue previously as were many others in the thread linked below but ST pushed a code change and fixed that issue a few weeks back.
I cannot get this SmartApp to find my bridge but I bet the groups are setup through the Hue debug tool as described in this post: Philips Hue Groups Control App
The issue with hub update needed is broken again it seems after ST just fixed it :(. Its not an issue with this smartapp. You can get around this by changing the end function to return true rather than the hubsallover function.
So thanks to cyril and fuzzy on thisā¦itās great!!!
Quick clarification around how it works??? Is ST storing the bulb states and triggering, or is it just triggering the scene on the hubā¦
I ask because I did something, likely by accident, where I updated a scene (it was a test of one bulb) to a different colorā¦letās say scene 1 for exampleā¦changed from blue to redā¦
i had it in my list as Scene 1ā¦changed the scene in the Hue appā¦was trying to trigger to see if the change updated scene 1ā¦it didnāt it was still blueā¦after readingā¦it looks like although the name is the sameā¦in truth, another modded version is stored on the hub so I would have to re-add scene 1 again to STā¦
what i then did was rename my existing Scene 1 to Scene 1 - Blueā¦added Scene 1 again and renamed it to Scene 1 - Redā¦BOTH worked fineā¦but if you look in the Hue appā¦i have only a Scene 1ā¦
my question then is the reference or Scene 1 - Blue is apparently an old version of scene 1 on the hub and as scenes are created (greater than 200) it could fall offā¦the scene 1 - red wouldnāt as itās a current scene, but the blue couldā¦
am i understanding this right? I am asking because i have no problems having 20 switches for different colors of something because i can organize in ST, but in the Hue app it SUCKSā¦so i would rather mod a scene in Hue, add and rename in ST thereby only having one scene in Hueā¦but i guess then all the other versions would be at risk when storage limit is reached.
Am i on point or just batty???
Thanks againā¦GREAT WORK!
Hi,
How can I add/update scenes after Iāve initially configured the app?
Iāve tried following the instructions in the readme (create new scene in the Hue app, trigger, turn off, rerun Hue ReConnect discovery), but new scenes arenāt found (and donāt show up in the logs anywhere either). The only way I can get new scenes to sometimes (though not always) show up in ST is by removing and then reinstalling the app.
Am I doing it wrong? Is there some trick to it Iām missing?
Appreciate any help!
The whole scene thing with the hue hub is a bit scatty, renaming the scenes doesnāt actually change the name of the scene on the hub unless you also change the scene slightly. Be aware of the maximum length of your scene name to be 26 chars max.
I only got sense with the discovery by deleting all the scene on my hub except the ones I am using and renaming and editing then deleting the old copy.
Iām planning when I get a moment to create a quick Windows app to list and allow you to delete scenes.
Thanks. Yes, Iāve tried renaming, changing, changing and renaming, and deleting/recreating/renaming multiple times with little luck. Didnāt know about the max length constraint (thanks), but all names are <= 19 characters.
An app to manage and truly delete scenes would be welcome.
Likely will be back to deleting everything and starting over tonight. Itās a great app, I just wish the API wasnāt so flaky.
Edit: I started playing around with the Hue debugger. I added some groups and that somehow prompted the discovery process in ST to find some (though not all) scenes that I had added. Weird, eh? Now Iām currently using it to delete scenes.
Just in case it helps anyone else: Iām not exactly sure which step āunclogged the pipe,ā but cleaning up my scenes using the debugger caused the ReConnect discovery process to start working well every time. In no particular order, I did the following using the debugger:
- Renamed a scene whoās name got cut off somehow (from āStar Gazing oā to āStar Gazing on 0ā)
- Manually added groups
- Manually added āoff 0ā scenes (the Hue app seems to rarely create those for me)
- Deleted loads of unused/duplicate scenes
If I had to bet on which step fixed it, Iād choose the first one ⦠this malformed name seem to cause issues I could see in the ST logging.
IMPORTANT UPDATE FROM SMARTTHINGS
Hi everyone,
Just a heads-up that the next Philips Hue bridge firmware update will prevent you from linking with the bridge unless the following change is made in Hue (ReConnect) app. The firmware update will start rolling out soon. Existing installations of the SmartApp will continue to work until next time you reinstall even if you dont apply the fix below.
In āsendDeveloperReqā, change:
body: [devicetype: ā$token-0ā, username: ā$token-0ā]], ā${selectedHue}ā))
To:
body: [devicetype: ā$token-0ā]], ā${selectedHue}ā))
This is due to a change in the Philips API
Great job on the ReConnect app btw!