Hue Lights discussion

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
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

https://github.com/nsheldon/Hue-Lights- ... ag/v1.8.66

fixed some more errors ie
Hue Lights Line 197 has error=list index out of range


Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

this should be the first non beta for

- no entry in supported devices needed for new lamps
- has print function for hue info from hue hub
- supports multiple hue bridges

https://github.com/nsheldon/Hue-Lights- ... ag/v1.8.70

Karl
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Version 1.8.0 Posted
  • Added support for all light types without the need to update the plugin for every new model of light.
  • Added support for multiple Hue Bridges.
  • Added Plugins menu option to print device details to the log
Special thanks to forum user kw123 for providing the code to support these new features.
MarcoGT
Posts: 1148
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

Re: Hue Lights discussion

Post by MarcoGT »

Maybe a bug introduced with the new version?

I set the brightness using the field, I do not want the brightness taken from a variable/other device.

Thanks
Attachments
Schermata 2022-02-07 alle 14.44.28.png
Schermata 2022-02-07 alle 14.44.28.png (133.27 KiB) Viewed 3206 times
MarcoGT
Posts: 1148
Joined: Thu Sep 11, 2014 1:06 pm
Location: Germany

Re: Hue Lights discussion

Post by MarcoGT »

I also got this error:

Code: Select all

Hue Lights Error                Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 11496, in recallScene
  File "plugin.py", line 5519, in getIdsFromDevice
AttributeError: 'NoneType' object has no attribute 'pluginProps'
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

I have the second fixed in v 1.8.1
Want test a little longer. Will post tomorrow.

is there anything in the log for the first post?

Karl.


Sent from my iPhone using Tapatalk
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

please try:
https://github.com/nsheldon/Hue-Lights- ... tag/v1.8.1

should take care of both issues

Karl
User avatar
c64
Posts: 53
Joined: Sun Oct 28, 2012 2:09 am
Location: Germany

Re: Hue Lights discussion

Post by c64 »

Thank you for all of the updates. I'm using 1.8.2 and am getting this error a lot:

Code: Select all

Hue Lights Error                Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 10874, in setColorTemperature
AttributeError: 'unicode' object has no attribute 'formate'
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

fixed in dev branch
https://github.com/nsheldon/Hue-Lights- ... tag/v1.8.3

was a typo when I replaced all unicode() functions, to be ready for python 3.9

Nathan should put this into the regular download, but if you want to use it now download from the posted link

Karl
User avatar
c64
Posts: 53
Joined: Sun Oct 28, 2012 2:09 am
Location: Germany

Re: Hue Lights discussion

Post by c64 »

Thank you!
User avatar
c64
Posts: 53
Joined: Sun Oct 28, 2012 2:09 am
Location: Germany

Re: Hue Lights discussion

Post by c64 »

Seem to be having another little issue. I have 2 Hue Gateways. When I go to add a new device and choose light "x" from Gateway1, it says error: light "x" is already being controlled by an Indigo Device , but this is not true. Even if I delete light "x" from the Philips Hue app and re-add it fresh, I get the same error. When I go to the Indigo Device which the plugin thinks is controlling my new light, the plugin window continues to tell fibs by showing light "x" as selected, but the Indigo Device is actually controlling light "y", and light "y" is working perfectly normally. I'm baffled!
Attachments
Screen Shot 2022-02-15 at 8.09.12 PM.png
Screen Shot 2022-02-15 at 8.09.12 PM.png (93.3 KiB) Viewed 3079 times
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: Hue Lights discussion

Post by nsheldon »

Thanks for the report. Could you share debug logs showing this? In Indigo, go to Plugins -> Hue Lights -> Toggle Debugging then reload the plugin (Plugins -> Hue Lights -> Reload). Reproduce the error and share the logs in your reply (or a private message if the logs are too long to share in a post).
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

I know what it is:
it compares the hub bulb- ids and this can be the same for 2 indigo devices. hubs start their ids with #1 ...99 so you can have bulbID =5 on both hubs.

we/i need to add the check if hub# is the same

Karl
we need to add

Code: Select all

 and valuesDict['hubNumber'] == otherDevice.pluginProps.get('hubNumber', 0)
to

Code: Select all

if valuesDict['bulbId'] == otherDevice.pluginProps.get('bulbId', 0):
in several places
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

please check:

https://github.com/nsheldon/Hue-Lights- ... tag/v1.8.4

that should fix it.. and nathan could you move this to production?

Karl

Nathan,
had to do this fix in 10 places for bulbId , groupId, and sensorId

Code: Select all

if valuesDict['bulbId'] == otherDevice.pluginProps.get('bulbId', 0) and hubNumber == otherDevice.pluginProps.get('hubNumber', 0)

Code: Select all

if sensorId == otherDevice.pluginProps.get('sensorId', 0) and hubNumber == otherDevice.pluginProps.get('hubNumber', 0) 

Code: Select all

if valuesDict['groupId'] == otherDevice.pluginProps.get('groupId', 0) and hubNumber == otherDevice.pluginProps.get('hubNumber', 0):
User avatar
c64
Posts: 53
Joined: Sun Oct 28, 2012 2:09 am
Location: Germany

Re: Hue Lights discussion

Post by c64 »

You guys are amazing. Thank you for all the time & effort you put into these plugins. Problem solved!
Locked

Return to “Archives”