Move 'GL-C-007' from kLightStripsDeviceIDs to kHueBulbDevice

This forum is archived topics from before the plugin was moved to the new owner. All topics are locked, but are preserved here for future reference.
User avatar
Hackencrash
Posts: 251
Joined: Wed Dec 16, 2015 7:05 am
Location: UK

Move 'GL-C-007' from kLightStripsDeviceIDs to kHueBulbDevice

Post by Hackencrash »

I notice bulb type 'GL-C-007' is currently defined as kLightStripsDeviceIDs in supportedDevices.py in this plugin. However, it did not allow me to control the colour of the bulb with the current config, only brightness and on/off.

I therefore tried moving 'GL-C-007' to kHueBulbDevice and this worked OK with the colour in Indigo. Incidently, I also tried it under kLivingColorsDeviceIDs which also enabled the colour option.

:o Interestingly, if I recreate the device in Indigo, I don't see the colour option, but if I then move 'GL-C-007' back to kLightStripsDeviceIDs (or kLivingColorsDeviceIDs for that matter) I do see the colour option, so we have a bug.

It appears that on initial device creation in Indigo, whatever 'GL-C-007' is defined as in supportedDevices.py (confirmed supportedDevices.py file saved and Hue Lights plugin restarted prior to device creation), no colour option is available for that device in Indigo. This doesn't change following a subsequent plugin restart. However, if then I move 'GL-C-007' to another colour bulb type, save supportedDevices.py and restart the Hue Lights plugin, I get the colour option appear. This is the only way I have managed to get the colour option to work in Indigo for this device type.

Please can you perhaps update the plugin so I don't have to do this trick in the supportedDevices.py file to get things working?

In the Hue iPhone app, both Colour (color) and hue controls are available, although the hue control acts a bit odd perhaps due to the lack of a W wire connected on the controller shown below:
GLEDOPTO.jpg
GLEDOPTO.jpg (505.62 KiB) Viewed 1569 times
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Move 'GL-C-007' from kLightStripsDeviceIDs to kHueBulbDe

Post by nsheldon »

Hi.

Thanks for the bug report and information. That certainly sounds like odd unwanted behavior. With version 1.7.26 of the Hue Lights plugin, I changed all of the code associated with Light Strips models such that the plugin should automatically detect the capabilities of the light strip device and update the device properties accordingly. Unfortunately, I only have the original Hue LightStrip with which to test this functionality. I'd like to get the plugin working correctly with your GLEDOPTO LED controller without having to move it to a different model grouping (which is confusingly inconsistent, especially for new plugin users). Could you please make sure you're using version 1.7.27 of the plugin (the current latest version) then try deleting the device, enable debug logging (Plugins -> Hue Lights -> Toggle Debug Logging), and re-adding the device? Then provide the debug logs from the point where debug logging was enable to the point where the device was added but lacked the correct color controls. I know deleting a device is a significant inconvenience due to other Indigo dependencies on the device, so I appreciate the help. If deleting the device is too disruptive, maybe you could create a whole new Indigo database (File -> New Database) and add the GLEDOPTO controller in that new database. (Then switch back to your original home database when done).
User avatar
Hackencrash
Posts: 251
Joined: Wed Dec 16, 2015 7:05 am
Location: UK

Re: Move 'GL-C-007' from kLightStripsDeviceIDs to kHueBulbDe

Post by Hackencrash »

LightAddDebug.txt
Please rename from .txt to .zip (which is actually a compressed .rtf)
(19.45 KiB) Downloaded 114 times
Please rename from .txt to .zip (which is actually a compressed .rtf)

Please find attached debug info as requested
User avatar
Hackencrash
Posts: 251
Joined: Wed Dec 16, 2015 7:05 am
Location: UK

Re: Move 'GL-C-007' from kLightStripsDeviceIDs to kHueBulbDe

Post by Hackencrash »

Forgot to mention, I'm on version 1.7.27 (current) of the Plugin.
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Move 'GL-C-007' from kLightStripsDeviceIDs to kHueBulbDe

Post by nsheldon »

Thank you. I'll look through those logs and work on fixing that bug.
Locked

Return to “Archives”