SmartThings Community

[UPDATED JAN 2019] Hue B Smart (Groups & Scenes) - Remove Popcorn Effect!

Heres a video of me selecting a bridge then hitting the refresh button. Are you just getting stuck at the refresh page?

Sorry, it was a late night and didn’t include all information. I removed all the devices and smart apps related to hue. Also tried reconnecting to the original hue smart app and removing. Also tried reinstalling your device types and smart apps a few times. I also restarted the ST hub and Hue hub several times through out the process.

Yep the bridge gets found and added ok.

Tried the other tricks in the previous thread of opening the bridge in things, going to the settings cog and pressing done - and tried renaming it, but neither helped.

Give me a few days I have a spare hub and 4 spare bulbs I can use to test a fresh install

1 Like

It’s just spinning for me. I’ve added some additional logging on discoverItems and this is what I’m getting;

43aec1b5-02fa-4728-a3a1-5b683138f88b  22:59:38: debug SCHEDULES: {[3:[id:3, groupId:10, status:disabled, sceneId:null, name:Dimmer Switch 8 Reset, type:schedule], 7:[id:7, groupId:0, status:disabled, sceneId:rSXM8OzTdj97NAu, name:L_04_dHU3H, type:schedule], 6:[id:6, groupId:12, status:disabled, sceneId:null, name:Wake up 1, type:schedule]]}
43aec1b5-02fa-4728-a3a1-5b683138f88b  22:59:38: debug GROUPS: {[3:[lights:[2, 10, 11, 9, 13, 8, 12, 6, 5, 1], id:3, action:[bri:254, effect:none, sat:222, hue:29274, alert:select, on:false, colormode:xy, ct:234, xy:[0.3692, 0.4288]], label:hgrp-0000016382, any_on:false, type:LightGroup, all_on:false], 2:[lights:[13, 8, 10, 12, 11], id:2, action:[bri:25, alert:none, on:false, colormode:ct, ct:225], label:hgrp-0000015616, any_on:false, type:LightGroup, all_on:false], 1:[lights:[5, 6, 1], id:1, action:[bri:254, effect:none, sat:222, hue:29274, alert:select, on:false, colormode:xy, ct:234, xy:[0.3692, 0.4288]], label:hgrp-0000000098, any_on:false, type:LightGroup, all_on:false], 10:[lights:[19], id:10, action:[bri:102, alert:none, on:true], label:Outside, any_on:true, type:Room, all_on:true], 7:[lights:[6, 5], id:7, action:[bri:8, effect:none, sat:94, hue:41520, alert:select, on:false, colormode:xy, ct:447, xy:[0.3286, 0.3227]], label:Hue Movie Sync, any_on:false, type:LightGroup, all_on:false], 6:[lights:[1, 5, 6], id:6, action:[bri:254, effect:none, sat:201, hue:7648, alert:select, on:false, colormode:xy, ct:447, xy:[0.5033, 0.4152]], label:Living Room, any_on:false, type:Room, all_on:false], 4:[lights:[2, 20, 10, 9, 19, 13, 12, 8, 11, 6, 5, 1], id:4, action:[bri:254, effect:none, sat:222, hue:29274, alert:select, on:false, colormode:xy, ct:234, xy:[0.3692, 0.4288]], label:hgrp-0001589094, any_on:true, type:LightGroup, all_on:false], 17:[lights:[21, 20, 2], id:17, action:[bri:1, effect:none, sat:252, hue:54953, alert:none, on:false, colormode:hs, ct:250, xy:[0.3824, 0.1603]], label:Upstairs, any_on:true, type:Room, all_on:false], 8:[lights:[9], id:8, action:[bri:1, alert:none, on:false, colormode:ct, ct:343], label:Dimmer 8, any_on:false, type:LightGroup, all_on:false], 16:[lights:[8, 10, 11, 12, 13], id:16, action:[bri:25, alert:none, on:false, colormode:ct, ct:225], label:Dining Room, any_on:false, type:Room, all_on:false], 11:[lights:[9], id:11, action:[bri:1, alert:none, on:false, colormode:ct, ct:343], label:Bedroom, any_on:false, type:Room, all_on:false]]}
43aec1b5-02fa-4728-a3a1-5b683138f88b  22:59:38: debug SCENES: {[-Scjdcu9jZd7QsE:[lights:[2, 20, 21], id:-Scjdcu9jZd7QsE, label:Dimmed, type:scene], BdQLIheJJzsbUzF:[lights:[8, 10, 11, 12, 13], id:BdQLIheJJzsbUzF, label:Movie, type:scene], 3b57cf2f1-on-0:[lights:[1, 6, 8, 10, 11, 12, 13], id:3b57cf2f1-on-0, label:Concentrate on 1479752019882, type:scene], rSXM8OzTdj97NAu:[lights:[9], id:rSXM8OzTdj97NAu, label:Wake Up end, type:scene], Be-5nxeheV5klNK:[lights:[1, 5, 6], id:Be-5nxeheV5klNK, label:Relax, type:scene], 756254f83-on-0:[lights:[1, 6, 8, 10, 11, 12, 13], id:756254f83-on-0, label:Concentrate on 1479752040260, type:scene], d78a6ed87-off-0:[lights:[2, 9], id:d78a6ed87-off-0, label:HIDDEN off 1479771566844, type:scene], 2d5a1e6ff-on-0:[lights:[2, 9], id:2d5a1e6ff-on-0, label:Bedroom On on 1479752295552, type:scene], GgpZF5CzoG-22ek:[lights:[1, 5, 6], id:GgpZF5CzoG-22ek, label:Off, type:scene], RAzDQSuUudZw-m2:[lights:[9], id:RAzDQSuUudZw-m2, label:Last on state, type:scene], wcQfApb6kE8GUZP:[lights:[2, 20, 21], id:wcQfApb6kE8GUZP, label:Nightlight, type:scene], UZT5V4oJIKYJIEV:[lights:[9], id:UZT5V4oJIKYJIEV, label:Read, type:scene], GKrEhJ2YbRpGrfI:[lights:[1, 5, 6], id:GKrEhJ2YbRpGrfI, label:Xmas, type:scene], 7U9ldOgyyaEVnlj:[lights:[19], id:7U9ldOgyyaEVnlj, label:Bright, type:scene], d4d6f0b0d-on-0:[lights:[1, 5, 6, 8, 10, 11, 12, 13], id:d4d6f0b0d-on-0, label:SmartThings Relax on 14844133041, type:scene], 6ea44bf1c-off-0:[lights:[1, 5, 6, 8, 10, 11, 12, 13], id:6ea44bf1c-off-0, label:HIDDEN off 1479752453820, type:scene], acd289360-on-0:[lights:[1, 5, 6, 8, 10, 11, 12, 13], id:acd289360-on-0, label:SmartThings Relax on 14838192062, type:scene], tu9i9pops-h07Jp:[lights:[8, 10, 11, 12, 13], id:tu9i9pops-h07Jp, label:Relax, type:scene], oCZoRtTqzDzRYqa:[lights:[8, 10, 11, 12, 13], id:oCZoRtTqzDzRYqa, label:Arctic aurora, type:scene], QJDshZpFFibEPgQ:[lights:[8, 10, 11, 12, 13], id:QJDshZpFFibEPgQ, label:Off, type:scene], eXb7F13nDasByxu:[lights:[1, 5, 6], id:eXb7F13nDasByxu, label:Sunset, type:scene], rhVAse4lMkvoE-c:[lights:[8, 10, 11, 12, 13], id:rhVAse4lMkv...[TRUNCATED]
43aec1b5-02fa-4728-a3a1-5b683138f88b  22:59:38: debug BULBS: {[21:[id:21, state:[bri:1, effect:none, sat:252, hue:54953, alert:select, reachable:false, on:true, colormode:xy, ct:250, xy:[0.3824, 0.1603]], label:Nursery, type:Extended color light], 2:[id:2, state:[bri:1, alert:none, reachable:true, on:false], label:Landing, type:Dimmable light], 20:[id:20, state:[bri:1, alert:none, reachable:true, on:false], label:Second Bedroom, type:Dimmable light], 1:[id:1, state:[bri:254, effect:none, sat:222, hue:29274, alert:select, reachable:true, on:false, colormode:xy, ct:234, xy:[0.3692, 0.4288]], label:Living Room Lamp, type:Extended color light], 10:[id:10, state:[bri:25, alert:none, reachable:true, on:false, colormode:ct, ct:225], label:Dining Room 1, type:Color temperature light], 6:[id:6, state:[bri:254, effect:none, sat:201, hue:7648, alert:select, reachable:true, on:false, colormode:xy, ct:447, xy:[0.5033, 0.4152]], label:Hue Go, type:Extended color light], 5:[id:5, state:[bri:8, effect:none, sat:94, hue:41520, alert:select, reachable:true, on:false, colormode:xy, xy:[0.3286, 0.3227]], label:Bias Lights, type:Color light], 19:[id:19, state:[bri:102, alert:none, reachable:false, on:true], label:Porch, type:Dimmable light], 9:[id:9, state:[bri:1, alert:none, reachable:true, on:false, colormode:ct, ct:343], label:Bedroom, type:Color temperature light], 8:[id:8, state:[bri:28, alert:none, reachable:true, on:false, colormode:ct, ct:225], label:Dining Room Lamp, type:Color temperature light], 13:[id:13, state:[bri:25, alert:none, reachable:true, on:false, colormode:ct, ct:225], label:Dining Room 4, type:Color temperature light], 11:[id:11, state:[bri:25, alert:none, reachable:true, on:false, colormode:ct, ct:225], label:Dining Room 2, type:Color temperature light], 12:[id:12, state:[bri:25, alert:none, reachable:true, on:false, colormode:ct, ct:225], label:Dining Room 3, type:Color temperature light]]}

It looks like the bridge attribute isn’t actually getting updated, and nor is it when any bulbs switch on or off, although they do switch no data seems to be able to go back from the hub.

Hey buddy, any luck?

Don’t want to bug as I know you’re helping out in your spare time - it’s just I’d removed the Hue re-connect app so I could update to this and now i’ve got no light automations. I don’t’ want to add back the stock option for now only to have to remove it all a day or two later for this superior option if we can get it working.

Totally forgot it was the London NFL game this weekend which I have a season ticket too. Should have a few hours when I get home tonight to test a fresh hub install

Tested adding a new bridge and one group last night. All working fine. Hue bridge had the latest firmware

Any ideas what I could do? Pretty sure the hub is on latest firmware, there are no updates available in the app anyway.

I’ll try power cycling the hub and trying again, past that i’m a bit stumped as to what else I can do.

I did a bit of tweaking to rename and try to re-add my hub and it finds the hub but then doesn’t find anything at all on the hub. This stopped working so must be something odd going on the network.

The following lines are being hit under “normal” use, ie. when the hub is online, linked and responding.

From what I can tell each time anything happens and the Hue Hub gives a HTTP reply then locationHandler(evt) is being triggered by a subscribe event.

However discoverItems() never seems to be triggered! Even when trying to refresh items.

How many non-bulb hue devices do you have?

Two switches and a motion sensor.

A dimmer and a tap.

@Gavin_Melling @realdannys

If one of you is willing to give me there smartthings email and password so I can login to your IDE and see the logs realtime and play with the code this evening (UK Time - currently its 4PM) its the only way I can ever see me fixing this problem

I’m in the UK and I’m willing to do that - just please don’t delete my devices…far too many rules to remember!

And I’m an IT professional and I understand the risks involved, but sometimes people are nice and you just have to put your trust in people (although I will be changing my password before and after, I’m not THAT trusting!)

1 Like

Sure i’ll PM it.

1 Like

I tried again after rebooting the hub just in case, but same thing. This time I got two errors trying to add the hub (not authorised and then unknown error) but eventually it added - but then it gets stuck in the same loop and never discovers anything.

ffe30369-480f-47e9-bc10-d649474b0539  19:05:32: error java.lang.ArrayIndexOutOfBoundsException
ffe30369-480f-47e9-bc10-d649474b0539  19:05:32: trace parse()
ffe30369-480f-47e9-bc10-d649474b0539  19:05:29: debug *********** wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf ********
ffe30369-480f-47e9-bc10-d649474b0539  19:05:29: debug *********** 192.168.0.41:80 ********
ffe30369-480f-47e9-bc10-d649474b0539  19:05:29: debug Initialize Bridge [ip:192.168.0.41, username:wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf, deviceId:00178822EFE6]
ffe30369-480f-47e9-bc10-d649474b0539  19:05:29: trace Bridge discovering all items on Hue hub.
ffe30369-480f-47e9-bc10-d649474b0539  19:05:17: error java.lang.ArrayIndexOutOfBoundsException
ffe30369-480f-47e9-bc10-d649474b0539  19:05:17: trace parse()
ffe30369-480f-47e9-bc10-d649474b0539  19:05:14: debug *********** wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf ********
ffe30369-480f-47e9-bc10-d649474b0539  19:05:14: debug *********** 192.168.0.41:80 ********
ffe30369-480f-47e9-bc10-d649474b0539  19:05:14: debug Initialize Bridge [ip:192.168.0.41, username:wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf, deviceId:00178822EFE6]
ffe30369-480f-47e9-bc10-d649474b0539  19:05:14: trace Bridge discovering all items on Hue hub.
ffe30369-480f-47e9-bc10-d649474b0539  19:05:01: error java.lang.ArrayIndexOutOfBoundsException
ffe30369-480f-47e9-bc10-d649474b0539  19:05:01: trace parse()
ffe30369-480f-47e9-bc10-d649474b0539  19:04:58: debug *********** wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:58: debug *********** 192.168.0.41:80 ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:58: debug Initialize Bridge [ip:192.168.0.41, username:wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf, deviceId:00178822EFE6]
ffe30369-480f-47e9-bc10-d649474b0539  19:04:58: trace Bridge discovering all items on Hue hub.
ffe30369-480f-47e9-bc10-d649474b0539  19:04:46: error java.lang.ArrayIndexOutOfBoundsException
ffe30369-480f-47e9-bc10-d649474b0539  19:04:46: trace parse()
ffe30369-480f-47e9-bc10-d649474b0539  19:04:43: debug *********** wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:43: debug *********** 192.168.0.41:80 ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:43: debug Initialize Bridge [ip:192.168.0.41, username:wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf, deviceId:00178822EFE6]
ffe30369-480f-47e9-bc10-d649474b0539  19:04:43: trace Bridge discovering all items on Hue hub.
ffe30369-480f-47e9-bc10-d649474b0539  19:04:31: error java.lang.ArrayIndexOutOfBoundsException
ffe30369-480f-47e9-bc10-d649474b0539  19:04:31: trace parse()
ffe30369-480f-47e9-bc10-d649474b0539  19:04:28: debug *********** wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:28: debug *********** 192.168.0.41:80 ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:28: debug Initialize Bridge [ip:192.168.0.41, username:wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf, deviceId:00178822EFE6]
ffe30369-480f-47e9-bc10-d649474b0539  19:04:28: trace Bridge discovering all items on Hue hub.
ffe30369-480f-47e9-bc10-d649474b0539  19:04:15: error java.lang.ArrayIndexOutOfBoundsException
ffe30369-480f-47e9-bc10-d649474b0539  19:04:15: trace parse()
ffe30369-480f-47e9-bc10-d649474b0539  19:04:12: debug *********** wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:12: debug *********** 192.168.0.41:80 ********
ffe30369-480f-47e9-bc10-d649474b0539  19:04:12: debug Initialize Bridge [ip:192.168.0.41, username:wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf, deviceId:00178822EFE6]
ffe30369-480f-47e9-bc10-d649474b0539  19:04:12: trace Bridge discovering all items on Hue hub.
ffe30369-480f-47e9-bc10-d649474b0539  19:03:59: error java.lang.ArrayIndexOutOfBoundsException
ffe30369-480f-47e9-bc10-d649474b0539  19:03:59: trace parse()
ffe30369-480f-47e9-bc10-d649474b0539  19:03:57: debug *********** wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf ********
ffe30369-480f-47e9-bc10-d649474b0539  19:03:57: debug *********** 192.168.0.41:80 ********
ffe30369-480f-47e9-bc10-d649474b0539  19:03:57: debug Initialize Bridge [ip:192.168.0.41, username:wc5uxxcNjXOBic0FnHVW-xI4eX5G2kKeMeUkj0Rf, deviceId:00178822EFE6]
ffe30369-480f-47e9-bc10-d649474b0539  19:03:57: trace Bridge discovering all items on Hue hub.

Obviously the java.lang.ArrayIndexOutOfBoundsException error seems to be the main culprit here.

Hi folks,
Anyone created a ‘white ambiance smart bulb group’

The lux group is missing the temp of bulbs (and not reporting that capability) - i can poke around in the device handler of the lux group, but i dont want to break the app (any thoughts?)

i joined some stuff from the ambiance white into the group and it seems to work (whats the best way to share the code back if anyone is interested) - i say ‘it works’ - all the important bits work :wink: