Did you update the HueScene.groovy as well ? Because some attibutes are missing here.
I only initially installed this morning for the first time.
Can you relaunch the HueConnect App and press done again while capturing the logs (and pate them in a https://gist.github.com).
(and the output of a get on the hue bridge for scenes /api/userid/scenes)
OK let me double check the Hue API, I see what is going wrong.
Just updated the HueConnect code, this should work. I made a wrong guess about the digit next to the on|off in the scene id/name. I asked to Hue Community what they are.
In the mean time I hardcoded the value for group to 0, this should fix your issue. (Relaunch the app and press done).
That did it! Thank you! The off button doesnât work, though. It looks like itâs just triggering the on scene.
Also for some reason, itâs setting one of the lights to the wrong state. When I tap it in the Hue app, all four go blue. When I do it in ST, 3 are blue, one is default. Iâll probably just delete the scenes and start over. I donât see how that can be a problem with your code.
Really, annoying, it seems like if you edit a scene in the Android Hue app, it doesnât modify it on the bridge. It actually creates an entirely new one, and doesnât delete the old one just hides it from the app? Very strange.
The off button can only work if you pressed the off button before on the hue app (see readme.md).
The scene button will only recall the latest scene with a given name.
Really, annoying, it seems like if you edit a scene in the Android Hue app, it doesnât modify it on the bridge. It actually creates an entirely new one, and doesnât delete the old one just hides it from the app? Very strange.
This is how hue API is working. The HueConnect app will then take the latest one using the lastupdated attribute.
I have pressed the off button, but maybe not on the âlatestâ scene. My HueConnect app is showing them all, and I canât tell which is which. I even tried changing the name in the Hue app, but they all show with the original name in HueConnect.
Can you get me the scenes using the Hue API debugger ( GET /api/user_id/scenes )?
PS: Iâm fixing another bug for off scenes
{
"c6cabaaab-off-0": {
"name": "Office test 1 off 1454004383539",
"lights": [
"3",
"4",
"61",
"63"
],
"owner": "0000000068701d97ffffffff84904312",
"recycle": true,
"locked": false,
"appdata": {},
"picture": "",
"lastupdated": "2016-01-28T18:06:28",
"version": 1
},
"e634363d5-on-0": {
"name": "Office test 1 on 1454010115199",
"lights": [
"3",
"4",
"61",
"63"
],
"owner": "0000000068701d97ffffffff84904312",
"recycle": true,
"locked": false,
"appdata": {},
"picture": "",
"lastupdated": "2016-01-28T19:41:59",
"version": 1
},
"0faca411d-on-0": {
"name": "Office test 1 on 1454010191928",
"lights": [
"3",
"4",
"61",
"63"
],
"owner": "0000000068701d97ffffffff84904312",
"recycle": true,
"locked": false,
"appdata": {},
"picture": "",
"lastupdated": "2016-01-28T19:43:16",
"version": 1
},
"bdb7ead5d-on-0": {
"name": "Office test 1 on 1454010275876",
"lights": [
"3",
"4",
"61",
"63"
],
"owner": "0000000068701d97ffffffff84904312",
"recycle": true,
"locked": false,
"appdata": {},
"picture": "",
"lastupdated": "2016-01-28T19:44:40",
"version": 1
},
"92a8000e7-on-0": {
"name": "Office test 1 on 1454004383540",
"lights": [
"3",
"4",
"61",
"63"
],
"owner": "0000000068701d97ffffffff84904312",
"recycle": true,
"locked": false,
"appdata": {},
"picture": "",
"lastupdated": "2016-01-28T18:06:28",
"version": 1
},
"349a2e40b-on-0": {
"name": "Office test 1 on 1454010532543",
"lights": [
"3",
"4",
"61",
"63"
],
"owner": "0000000068701d97ffffffff84904312",
"recycle": true,
"locked": false,
"appdata": {},
"picture": "",
"lastupdated": "2016-01-28T19:50:29",
"version": 1
},
}
I seeâŠ
Office test 1 on
+ id
is different each time. I donât know why itâs doing this. Let me try to fix this.
(it doesnât occurs on iOS)
Ok time to update I hope this will work now.
Okay, that seems to work. My off button is still triggering the on event, though. It appears tapping off in the Hue Android app didnât create the off scene for this one. (confirmed in Hue API debug).
It exists, Iâm also fixing thisâŠ
Try again⊠new code
I renamed the scene to âblahâ and it only created the on scene for that one. Iâll try just deleting it and starting over.
You have to trigger the Off button in order to create the off scene. This is dumb I knowâŠ
I did that on âblah.â It didnât create it. Maybe renamed scenes have problems. The Hue app kinda sucks.
Edit: Yeah, not creating the off scene for me for some reason now. Not a big deal right now, but annoying. Itâd be nice if there was actually a good scene manager that lets you see all the scenes, including duplicates, and delete the ones you want. I feel like the way it works now, creating new ones on edits and leaving the old ones there, might eventually end up deleting ones that are still in use with ST. Not a problem for the Hue App, because it has it saved and will just recreate it⊠I guess you can save all the state information and recreate the scene if you want too from your ST app, but it just seems annoying.
Iâm curious⊠if you create a scene in iOS, then do /api/username/scenes/id on that scene, does it show you the lightstates? Does it create the scene using the new POST method instead of PUT? My Android app is still using the PUT method, so I canât see the lightstates from the scene. Hue is so frustrating. I love the bulbs, but all the software is just so bad.