I just installed some Gledopto ceiling recessed can lights (4). I was only able to add them to indigo once I added them to a room - and not able to add them individually - not sure if that's normal or not..
In any case - I'm trying to create an action to recall a scene. I was able to select the the correct scene creator and scene - and the group shows the lights affected - but i get an error when I try to execute:
Action Group HUE Scene Test
Hue Lights Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 10899, in recallScene
File "plugin.py", line 8873, in doScene
NameError: global name 'device' is not defined
Indigo 4.7
HUE Plugin v 1.7.35
Anyone scene this? (pun intended)
Attachments
Screen Shot 2020-09-18 at 11.45.09 AM.png (113.99 KiB) Viewed 4267 times
I can add support for the Gledopto lights. The easiest way for me to do that is to get about 10 seconds worth of debug log output from you. Just turn on debug logging for about 10 seconds and paste the logs into your reply, along with the name you've given the lights within the Hue app. Debug logging can be toggled on and off in the Plugins menu -> Hue Lights -> Toggle Debugging.
As for the scene issue, that certainly looks like a plugin bug. I'll check it out and see if I can track down the problem without getting more debug log info from you. If I can't find the issue in the code, I'll probably hit you up for some more debug logs while you reproduce that error so I can get more detailed tracking info.
Thanks a lot Nathan! I missed your earlier reply and saw someone else was able to supply you with the log... Please let me know if you need anything else - or if you need me to test anything wrt the Gledopto Recessed Lights if you decide to add support!
I am no longer seeing the errors. While this is working for my needs - i thought i'd share something with you that I am seeing:
I have 5 "scene creators" in my dropdown (seems to be devices used with other (real) HUE lights in the house
My iPhone is the only scene creator that allows me to select a scene and then my room's group and actually see the 4 ceiling lights appear (This is perfectly fine for my needs)
When I click on the "scene" dropdown, I see 5 copies of each scene that I have on the HUE app on my iPhone:
duplicate items.png (463.42 KiB) Viewed 4100 times
Only 1 of each of the duplicates work/show my ceiling lights
scene showing devices.png (113.83 KiB) Viewed 4100 times
When I select a different copy - i don't see my lights:
scene not showing devices.png (106.39 KiB) Viewed 4100 times
I turned on debug mode while I was toggling thru the screenshots above - it was too big to attach so I made a link to my gDrive
lazlohollyfeld wrote:I have 5 "scene creators" in my dropdown (seems to be devices used with other (real) HUE lights in the house
My iPhone is the only scene creator that allows me to select a scene and then my room's group and actually see the 4 ceiling lights appear (This is perfectly fine for my needs)
When I click on the "scene" dropdown, I see 5 copies of each scene that I have on the HUE app on my iPhone:
Thanks for the report. At first glance this seem like expected behavior (at least from my own experience). The Hue app seems to create multiple copies of each scene with different combinations of lights from various rooms in your house. I don’t know why it does this or how to prevent it. That’s one of the reasons the Recall Hue Scene window is so complicated, because I couldn’t find any logical pattern to how scenes in the Hue bridge were organized so I just make all the options available in the dialog box. The Group Limit menu appears to be acting as designed. All that menu does is remove lights in the selected Scene that are not part of the selected Group. So if the Scene selected contains a light from the living room and a light from the dining room, if the Group Limit is set to "0: (All Hue Lights)", you'll see both lights listed and both of those lights will be affected when the scene is recalled. If the Group Limit is set to "1: Living Room" (the number will probably be different on your bridge), only the light in the living room will be affected by the recalled scene. If the Group Limit is set to "2: Dining Room", only the light in the dining room will be affected. Of course, if the Group Limit is set to "3: Bedroom", no lights will be affected because the Scene contains no lights in the bedroom.
jbdecker wrote:Hi Nathan,
Not sure if I should create a new thread on this but I've got a similar yet slightly different error when trying to recall a hue scene:
Hue Lights Error Error in plugin execution GetUiDynamicList:
Traceback (most recent call last):
File "plugin.py", line 4772, in scenesListGenerator
KeyError: (u'none',)
Any ideas what I can try? The scene's appear empty even though there are many of them.
Thanks!
Thanks for the report. It appears there might be some unexpected data coming from the Hue bridge that the plugin isn't expecting. The debug info you provided was just for a group list. I need to see debug logs starting from just before you click the "Edit Action Settings" button in the Recall Hue Scene action. You can get this by first opening the trigger, action group, schedule or control page that contains the Recall Hue Scene action. Then click the Plugins menu and select Hue Lights -> Toggle Debugging. Then click the "Edit Action Settings" button in the action window. You should see the error in the log window. Cancel the Edit window and choose the Toggle Debugging option from the Plugins -> Hue Lights menu again. Copy and paste the full debug log into your reply, or put it in a zipped file as lazlohollyfeld did.
Fixed a bug that would cause an error when attempting to select a Hue scene in the Recall Hue Scene dialog if the scene parameters on the Hue bridge don't include a corresponding scene creator (owner).
Added support for a new dimming-only Hue white lamp.