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.
bbruck
Posts: 354
Joined: Sun Oct 05, 2008 11:41 pm

Re: Hue Lights discussion

Post by bbruck »

None of my action groups that call a Hue scene are working. Upgraded plugin to 1.8.4 as per links above. Log shows:
Feb 20, 2022 at 6:18:18 AM
Stopping plugin Hue Lights (pid 8252)
Stopped plugin Hue Lights
Upgrading plugin Hue Lights to newer version 1.8.4 (previous version moved to trash)
Loading plugin "Hue Lights 1.8.4"
Starting plugin "Hue Lights 1.8.4" (pid 8254)
Started plugin "Hue Lights 1.8.4"
Hue Lights hostIds read: {'0': u'L00XferMNioNN6vlg-x6EefDTlPHQZqhjt-4Gx5Z'}
Hue Lights ipAddresses loaded:{'0': u'192.168.1.43'}
Hue Lights hubs paired read: {'0': True}
Hue Lights hub:0 Loaded 40 light(s).
Hue Lights hub:0 Loaded 14 group(s).
Hue Lights hub:0 Loaded 22 scene(s).
Hue Lights hub:0 Loaded 1 sensor(s).

Feb 20, 2022 at 6:19:01 AM
Action Group Sunroom Mood
Hue Lights Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 11525, in recallScene
File "plugin.py", line 9481, in doScene
KeyError: (False,)

Need any more info?
Indigo user since 2008
30 Insteon, 20 Hue, 8 Ecobee, 3 TpLink, 0 Z-Wave devices
bbruck
Posts: 354
Joined: Sun Oct 05, 2008 11:41 pm

Re: Hue Lights discussion

Post by bbruck »

Fixed - but perhaps needs more documentation?

Action group had a command:
Recall hue scene sunroom mood from hue 3 app on iPhone for all hue lights
I edited the action setting and found a new selection:
Hue GW number [blank]
I chose Select GW number and got the following Hue lights error:
UI dynamic list function returned illegal ID string (ignoring):
I then used the dropdown and selected 0 (the only value that appeared)

Now the action group works as expected.

I'll edit the other ~20 action groups that use this recall hue scene command.

THANK YOU to the intrepid team working on this plugin. Just so you know, I have been switching from Insteon to Hue as/when I need new hardware, so for me this plugin IS now Indigo. Without it my entire house wouldn't work. You guys are the best!!!
Indigo user since 2008
30 Insteon, 20 Hue, 8 Ecobee, 3 TpLink, 0 Z-Wave devices
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 edit you actions and set the gateway number
bbruck
Posts: 354
Joined: Sun Oct 05, 2008 11:41 pm

Hue Lights disconnected

Post by bbruck »

Something I've noticed over the past year(s) - in Indigo's list of devices, many but not all of my Hue devices show the Disconnected state. They still work just fine, and when I turn them on or off the state changes to the appropriate brightness level. Nothing broken or whatnot, but wassup with that?
Indigo user since 2008
30 Insteon, 20 Hue, 8 Ecobee, 3 TpLink, 0 Z-Wave devices
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Hue Lights discussion

Post by Different Computers »

Just updated to latest and now this:

Code: Select all

Started plugin "Hue Lights 1.8.0"
   Hue Lights                      Bridges paired:  {'0': True}
   Hue Lights                      Bridge 0 loaded 18 light(s).
   Hue Lights                      Bridge 0 loaded 7 group(s).
   Hue Lights                      Bridge 0 loaded 49 scene(s).
   Hue Lights                      Bridge 0 loaded 2 sensor(s).
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
   SQL Logger                      adding column "whitelevel_ui" to table device_history_304277966 ("Reading Lamp")
   SQL Logger                      adding column "whitetemperature_ui" to table device_history_304277966 ("Reading Lamp")
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
   Error                           device "Reading Lamp" state key colorTemp not defined (ignoring update request)
These continue in the log. I've changed the color of the light manually, and the errors continue.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

could you post:

1. screen shot of the device states
2. menu/print hue .../ lights
3. menu/print hue .../ all info for one specific GW-light-id (select that light)

Karl
Last edited by kw123 on Thu Feb 24, 2022 3:46 am, edited 1 time in total.
User avatar
AusTxNerd
Posts: 12
Joined: Mon Jul 30, 2007 10:56 pm
Location: Austin, TX

Re: Hue Lights discussion

Post by AusTxNerd »

Testing my setup with 1.8.6 linked above. Getting an error that I don't see already reported:

Code: Select all

Traceback (most recent call last):
  File "plugin.py", line 11403, in recallPreset
  File "plugin.py", line 9104, in doXYY
UnboundLocalError: local variable 'r' referenced before assignment

This is from an action that is using "Set xyY Chromatisety (Advanced)".
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

yes that's a bug, but simple to fix.
2 lines were flipped

this should fix it
https://github.com/nsheldon/Hue-Lights- ... tag/v1.8.7

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.7 Posted
  • Fixed a bug where pre-version 1.8 Hue bridge preferences weren't migrated correctly to the new 1.8 version.
  • Fixed a bug that caused the plugin to crash when using the XYY color setting action.
  • Added option to switch logging on/off for events and light changes such as "Hue Lights received 'dimmer dining' ON button press with short release" and "Updated 'dining room ceiling' on to 11".
  • Fixed an error in doColorTemperature where not all arguments were converted during string formatting.
  • Fixed "This Hue connected device is already being controlled by..." error.
  • Fixed "unicode" object has no attribute "formate".
Special thanks to forum user kw123 for providing code fixing support.
User avatar
AusTxNerd
Posts: 12
Joined: Mon Jul 30, 2007 10:56 pm
Location: Austin, TX

Re: Hue Lights discussion

Post by AusTxNerd »

Thanks! 1.8.7 is working great for me.
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Hue Lights discussion

Post by Different Computers »

kw123 wrote:could you post:

1. screen shot of the device states
2. menu/print hue .../ lights
3. menu/print hue .../ all info for one specific GW-light-id (select that light)
Not sure if this is what you mean by #1
https://imgur.com/a/qRASgBM

#2

Code: Select all

hubNumber:0, ipNumber:192.168.0.XXX, hostId:918aee5a4b34f5182c1a03168703a600, paired:True
 ID modelId--------- type--------------------- uniqueid------------------ Name---------------------------- ProductId-------------------- manufacturername------------- ProductName------------------ indigoID-----
  1 LCT002           Extended color light      00:17:88:01:00:d0:83:1f-0b Great room ball lamp                                           Signify Netherlands B.V.      Hue color downlight           493458466     
  2 LCT002           Extended color light      00:17:88:01:00:e0:e6:65-0b Garage                                                         Signify Netherlands B.V.      Hue color downlight           1644423038    
  3 LCT002           Extended color light      00:17:88:01:00:d0:85:21-0b Bar lamp                                                       Signify Netherlands B.V.      Hue color downlight           1649580600    
  4 LST001           Color light               00:17:88:01:00:cf:4e:40-0b Passthrough                                                    Signify Netherlands B.V.      Hue lightstrip                1587535917    
  5 LWB004           Dimmable light            00:17:88:01:00:d5:cc:e2-0b Side door                                                      Signify Netherlands B.V.      Hue white lamp                1211155337    
  6 LWB004           Dimmable light            00:17:88:01:00:d5:b8:21-0b Great room                                                     Signify Netherlands B.V.      Hue white lamp                561459498     
  7 LWB004           Dimmable light            00:17:88:01:00:df:a1:21-0b Front porch                                                    Signify Netherlands B.V.      Hue white lamp                1543396204    
  8 ZLL Light        Dimmable light            7c:e5:24:00:00:06:78:06-01 Corner lamp                                                    GE_Appliances                 Dimmable light                262761107     
  9 ZLL Light        Dimmable light            7c:e5:24:00:00:05:58:18-01 Great room corner                                              GE_Appliances                 Dimmable light                              
 10 ZLL Light        Dimmable light            7c:e5:24:00:00:12:47:6f-01 Patio spot                                                     GE_Appliances                 Dimmable light                88034654      
 13 ZLL Light        Dimmable light            7c:e5:24:00:00:12:e8:41-01 Front spot                                                     GE_Appliances                 Dimmable light                1559546934    
 16 LST001           Color light               00:17:88:01:00:cb:f8:51-0b Bar lightstrip                                                 Signify Netherlands B.V.      Hue lightstrip                645398487     
 17 ZLL Light        Dimmable light            7c:e5:24:00:00:14:76:97-01 Breezeway                                                      GE_Appliances                 Dimmable light                497928065     
 19 LLC011           Color light               00:17:88:01:00:c0:d3:3d-0b Bedside                                                        Signify Netherlands B.V.      Hue bloom                     154160770     
 21 LLC020           Extended color light      00:17:88:01:01:15:fa:eb-0b Reading lamp                                                   Signify Netherlands B.V.      Hue go                        304277966     
 22 LST001           Color light               00:17:88:01:00:cb:e1:32-0b TV Light                                                       Signify Netherlands B.V.      Hue lightstrip                              
 24 ZLL Light        Dimmable light            7c:e5:24:00:00:15:20:c4-01 Office                                                         GE_Appliances                 Dimmable light                50715145      
 25 ZLL Light        Dimmable light            7c:e5:24:00:00:05:62:fe-01 Old dresser                                                    GE_Appliances                 Dimmable light                1493766208    
 ============ printHueLights 
As you can probably see, this is a Hue Go, and it has worked well for years until this update.
#3

Code: Select all

Hue Lights                      printHueData  hubNumber:0, indigoId:304277966       bulbId:21     data:
{
  "capabilities": {
    "certified": true, 
    "control": {
      "colorgamut": [
        [
          0.6915, 
          0.3083
        ], 
        [
          0.17, 
          0.7
        ], 
        [
          0.1532, 
          0.0475
        ]
      ], 
      "colorgamuttype": "C", 
      "ct": {
        "max": 500, 
        "min": 153
      }, 
      "maxlumen": 300, 
      "mindimlevel": 40
    }, 
    "streaming": {
      "proxy": true, 
      "renderer": true
    }
  }, 
  "config": {
    "archetype": "huego", 
    "direction": "omnidirectional", 
    "function": "decorative", 
    "startup": {
      "configured": true, 
      "mode": "powerfail"
    }
  }, 
  "manufacturername": "Signify Netherlands B.V.", 
  "modelid": "LLC020", 
  "name": "Reading lamp", 
  "productname": "Hue go", 
  "state": {
    "alert": "select", 
    "bri": 254, 
    "colormode": "hs", 
    "ct": 325, 
    "effect": "none", 
    "hue": 0, 
    "mode": "homeautomation", 
    "on": true, 
    "reachable": true, 
    "sat": 43, 
    "xy": [
      0.4331, 
      0.3652
    ]
  }, 
  "swupdate": {
    "lastinstall": "2022-02-03T21:23:00", 
    "state": "noupdates"
  }, 
  "swversion": "67.93.7", 
  "type": "Extended color light", 
  "uniqueid": "00:17:88:01:01:15:fa:eb-0b"
At the moment, it's disabled in Indigo because of the errors. But the errors come back as soon as I re-enable it and try to send a command.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Hue Lights discussion

Post by kw123 »

thanks for posting,

the screen shot has too low a resolution. I can not see anything: could you post bigger and make sure all states are visible?

and the printHueData has some lines missing

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 »

just checked:

Color Lights (Aura, Bloom, StoryLight, LivingColors, etc.) is a dimmer that has no dev state: colorTemp

Don't know if that state should be there or how it disappeared.

will check some older version

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 »

could you change device type to "huebulb" = Hue Color/Ambiance and compatible
that one has RGB XYZ ColorTemp

the current seems to be set to "hueLivingColorsBloom" = "Color Lights (Aura, Bloom, StoryLight, LivingColors, etc.)

that should fix this

Karl

here the mapping as I see them :

Code: Select all

kmapHueTypeToIndigoDevType = {	
#								Hue_Type					      indigo dev types					      indigo dev type text											            LEDs 
								"Extended color light":		["hueBulb", "hueLightStrips"],    # = "Hue Color/Ambiance and compatible"  and  "Light Strips"   		rgb xyz color temp 		RGB and cold and Warm LED
								"Color light":				   ["hueLivingColorsBloom"],  		  # = "Color Lights (Aura, Bloom, StoryLight, LivingColors, etc.)" 	rgb xyz NO color Temp 	RGB LEDS
								"Dimmable light":			   ["hueLivingWhites"],  			   # =" LivingWhites (Hue Lux, generic dimmable device, etc.)"     	  white lamp only dimmer	White LED
								"Color temperature light":	["hueAmbiance"], 				    # = "Ambiance Lights (color temperature)" 						     	   dimmer and color temperature cold + warm LED
								"On/Off":					     ["hueOnOffDevice"],   			    # ="On/Off Device (Hue Smart Plug, etc.)" 						       on off only
							}
 
Locked

Return to “Archives”