Hue Lights discussion

Posted on
Fri Jun 02, 2017 10:52 am
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

Hi

Doesn't seem to affect functionality (that I can detect) but I'm getting the following event log entries that appear to be Hue Motion Sensor related...

Code: Select all
1 Jun 2017, 08:25:38
   Hue Lights                      received "Motion Shed Temp" sensor update to 13.9 ºC
   Script Error                    embedded script: global name 'iindigo' is not defined
   Script Error                    Exception Traceback (most recent call shown last):

     embedded script, line 2, at top level
NameError: global name 'iindigo' is not defined

   Script Error                    embedded script: global name 'iindigo' is not defined
   Script Error                    Exception Traceback (most recent call shown last):

     embedded script, line 2, at top level
NameError: global name 'iindigo' is not defined

Posted on
Fri Jun 02, 2017 11:02 am
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Hue Lights discussion

You have a python script somewhere with a typo:

Code: Select all
import iindigo


should only have 1 "i" at the beginning... ;)

The script may be triggered in response to a temp change from the Hue Lights plugin.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 02, 2017 11:08 am
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

You have a python script somewhere with a typo


Is it definitely a user script? or could it be plugin related?
damned if I can find any of my scripts that refer to the motion sensor or have a variable "iindigo"

Posted on
Fri Jun 02, 2017 11:18 am
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Hue Lights discussion

It's definitely a script, that's what the "Script Error" means...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 02, 2017 11:19 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

It's definitely a script and nothing in the plugin. Hunting down scripts with errors is still a bit of a pain. I noticed there's no log entry indicating a trigger was fired so you may have disabled trigger notifications in the log for the trigger that's firing. You might need to look at all the triggers that execute on temperature change and be sure the check box is checked to show the event in the log. If that doesn't help, you might have to disable all triggers and start slowly re-enabling them until you find the trigger that's executing the script with the error.

Posted on
Fri Jun 02, 2017 11:31 am
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

that's what the "Script Error" means...
ha ha :-)
will keep hunting - thanks for the help - appreciated

Posted on
Fri Jun 02, 2017 11:40 am
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Hue Lights discussion

Does it happen every time there's a temp change logged by the Hue Lights plugin? If not, then the timing of your log snippet above was just coincidental. Otherwise, it seems quite likely that there's a trigger somewhere firing on a temp change for that device (and the logging of the trigger firing is disabled as Nathan suggests).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 02, 2017 12:19 pm
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

If I initiate a "send status request" for a hue motion temperature device I get...

Code: Select all
2 Jun 2017, 19:16:59
   Hue Lights                      sent "Motion Shed Temp" status request
   Hue Lights Error                Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 3922, in actionControlSensor
  File "plugin.py", line 4767, in getSensorStatus
NameError: global name 'sensorId' is not defined

   Hue Lights                      sent "Motion Shed Temp" status request
   Hue Lights Error                Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 3922, in actionControlSensor
  File "plugin.py", line 4767, in getSensorStatus
NameError: global name 'sensorId' is not defined

   Hue Lights                      sent "Motion Porch Temp" status request
   Hue Lights Error                Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 3922, in actionControlSensor
  File "plugin.py", line 4767, in getSensorStatus
NameError: global name 'sensorId' is not defined

Posted on
Fri Jun 02, 2017 12:53 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

That's a bug in the plugin. I didn't encounter that in my testing and didn't see that during the beta period. But it's certainly a plugin bug. I'll look into that, but may need more detailed debug logs from you. Note, however, that that error is unrelated to the script error.

Posted on
Fri Jun 02, 2017 1:00 pm
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

Thanks nathan - will keep hunting the script error

Posted on
Fri Jun 02, 2017 1:44 pm
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Hue Lights discussion

Make a copy of your DB file and then open the copy in a text editor (it's just an XML file). Search for "iindigo" and that should help you locate the trigger/schedule/action group that it's in.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 02, 2017 2:05 pm
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

genius!

Make a copy of your DB file and then open the copy in a text editor (it's just an XML file). Search for "iindigo" and that should help you locate the trigger/schedule/action group that it's in.

Posted on
Fri Jun 02, 2017 2:16 pm
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

... and it worked!
thanks a ton

Posted on
Sat Jun 03, 2017 12:07 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Hue Lights discussion

Version 1.6.1 Posted

  • Fixed a bug that caused an error when clicking the Send Status Request button in the Indigo UI for Hue Motion Sensor devices.
  • Added support for another Hue Ambiance bulb (model ID LTC001).

Posted on
Sat Jun 03, 2017 2:29 am
marketability offline
User avatar
Posts: 198
Joined: Dec 08, 2015
Location: UK

Re: Hue Lights discussion

Thanks Nathan

Page 49 of 103 1 ... 46, 47, 48, 49, 50, 51, 52 ... 103

Who is online

Users browsing this forum: No registered users and 2 guests