New LIFX Controller version updated in Indigo Plugin store.

User avatar
amannone
Posts: 34
Joined: Tue Nov 23, 2010 7:50 am
Location: Boston, MA

Re: New LIFX Controller version updated in Indigo Plugin sto

Post by amannone »

Hey there - Thanks for the 6.0.14 plugin - it's been working great. Still getting some No Asks, but they recover quickly and almost unnoticeable in "real world use" unless I look at the log and see the error there. It's been an improvement from the version 5.

I was wondering if you could add support for a (newish) variant of the LIFX A19. This has a model number (according to the app) of "LIFX Color A19 1100lm".
Querying the LIFX REST API, it says this for the device:

Code: Select all

    "product": {
      "name": "LIFX A19",
      "identifier": "lifx_a19",
      "company": "LIFX",
      "vendor_id": 1,
      "product_id": 93,
      "capabilities": {
        "has_color": true,
        "has_variable_color_temp": true,
        "has_ir": false,
        "has_hev": false,
        "has_chain": false,
        "has_matrix": false,
        "has_multizone": false,
        "min_kelvin": 1500,
        "max_kelvin": 9000
      }
I tried adding the product ID in the products.py in my copy of the plugin, but the new bulb wasn't discovered still. (I'm sure I missed something). At any rate, it be much appreciated if you could add the new product id.

Thanks for the plugin!
-Andrew
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: New LIFX Controller version updated in Indigo Plugin sto

Post by autolog »

Glad you are enjoying the plugin. :)

"product_id": 93 isn't listed on the LIFX Developer site yet AFAICS, see: LIFX - Our Products

I'll look at trying a fix for this tomorrow [UK time] (using your LIFX REST API info) which will be on a best endeavours basis as it isn't documented. I will upload a pre-release to Github and let you know when you can try it out. :)
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: New LIFX Controller version updated in Indigo Plugin sto

Post by autolog »

Hi Andrew,
amannone wrote:.... At any rate, it be much appreciated if you could add the new product id.
New Pre-Release uploaded to Github: Add support for LIFX Color A19 1100lm

Let me know if it works for you. :)
User avatar
amannone
Posts: 34
Joined: Tue Nov 23, 2010 7:50 am
Location: Boston, MA

Re: New LIFX Controller version updated in Indigo Plugin sto

Post by amannone »

Hey thanks for the quick turn around - I just installed it and it's working great. Whoo-hoo!! :D

I did find the source of my issue - device discovery was blocked because of the VLAN I put the light on when i set it up. (still trying to get cross VLAN UDP Broadcast working). After I put the light back on my main VLAN, it was discovered with my addition of product 93 to the plugin and also with the the pre-release plugin you posted.
autolog wrote:"product_id": 93 isn't listed on the LIFX Developer site yet AFAICS, see: LIFX - Our Products

Yeah, I noticed that too - Not sure why they hadn't updated the Dev site documentation since I have two in hand!
So, like any self respecting nerd, I got an API Key and hit up the REST to see what the device was reporting. LOL.

As an aside, I think I found a bug in the set color when trying to use "Pre-Fill Options: Set Value from Lifx Device". After picking the device from the dropdown, I get this error printed in the log an the UI does not update with the state from the selected device.

Code: Select all

   LIFX Error                      Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 1302, in actionConfigLifxDeviceSelected
NameError: global name 'devId' is not defined
I was getting this error in both the latest release from the Plugin Store as well as the pre-release on Github.

Thanks again!
-Andrew
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: New LIFX Controller version updated in Indigo Plugin sto

Post by autolog »

Hi Andrew,
amannone wrote:... As an aside, I think I found a bug in the set color when trying to use "Pre-Fill Options: Set Value from Lifx Device". After picking the device from the dropdown, I get this error printed in the log an the UI does not update with the state from the selected device.

Code: Select all

   LIFX Error                      Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 1302, in actionConfigLifxDeviceSelected
NameError: global name 'devId' is not defined
I was getting this error in both the latest release from the Plugin Store as well as the pre-release on Github.
Thanks for the report. :)

It seems like that is a bug that has been around since I don't know when. :wink:

Should be fixed in Version 6.0.17, now available as a pre-release on Github: Bug Fix
User avatar
amannone
Posts: 34
Joined: Tue Nov 23, 2010 7:50 am
Location: Boston, MA

Re: New LIFX Controller version updated in Indigo Plugin sto

Post by amannone »

Should be fixed in Version 6.0.17, now available as a pre-release on Github: Bug Fix
Just installed it — the "Pre-Fill Options: Set Value from Lifx Device" appears to be functioning as expected.

Thanks again for such a quick turn-around. You rock!

-Andrew
Post Reply

Return to “LIFX Controller”