Autolog LIFX Controller Discussion

Posted on
Thu Aug 21, 2014 1:01 am
autolog offline
Posts: 2456
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+0]

Re: Autolog LIFX Controller Discussion

jay (support) wrote:
If those devices are just standard relay or dimmer devices, can't you just use the built-in turnOn, turnOff, toggle methods?

They aren't standard relay / dimmer devices - they are LIFX lamps controlled via my Plugin / LIFX API.

If you use these methods you get an error:
Script Error embedded script: ElementWrongTypeError -- device "Table Lamp" class type indigo.device is not compatible with request for type indigo.relay
Script Error Exception Traceback (most recent call shown last):

embedded script, line 1, at top level
ValueError: ElementWrongTypeError -- device "Table Lamp" class type indigo.device is not compatible with request for type indigo.relay

Posted on
Thu Aug 21, 2014 12:29 pm
jay (support) offline
Site Admin
User avatar
Posts: 14860
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Autolog LIFX Controller Discussion

Too bad you didn't implement them as dimmer devices, then the built-in controls would have worked.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Aug 21, 2014 12:54 pm
autolog offline
Posts: 2456
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+0]

Re: Autolog LIFX Controller Discussion

jay (support) wrote:
Too bad you didn't implement them as dimmer devices, then the built-in controls would have worked.

I can take a look at how to change the Plugin to do that. I was originally focused on getting it to work controlling the lamps.
I can see that it would make sense to try and do this.

Thanks for the suggestion :)

Posted on
Thu Aug 21, 2014 6:43 pm
matt (support) offline
Site Admin
User avatar
Posts: 18723
Joined: Jan 27, 2003
Location: Texas

Re: Autolog LIFX Controller Discussion

The Indigo SDK download has an example plugin that implements a relay/dimmer, so take a look at that if you haven't already.

One gotcha will be that I'm not sure it will be possible to programmatically migrate from your custom device type to the native relay/dimmer type. So users are going to have to re-create their devices if you change the plugin. Probably worth it IMO though – it will just be a one time process existing users of the plugin will have to do...

Image

Posted on
Thu Aug 21, 2014 6:59 pm
manwithavan offline
User avatar
Posts: 73
Joined: Jan 14, 2014
Location: Melbourne Australia

Re: Autolog LIFX Controller Discussion

Would I be right in thinking if the plugin we're implemented this way they'd show up as ordinary devices and therefore show on indigo touch? If so would they show on/off states?

Posted on
Thu Aug 21, 2014 7:23 pm
matt (support) offline
Site Admin
User avatar
Posts: 18723
Joined: Jan 27, 2003
Location: Texas

Re: Autolog LIFX Controller Discussion

Yes, and correct.

Image

Posted on
Thu Aug 21, 2014 7:24 pm
manwithavan offline
User avatar
Posts: 73
Joined: Jan 14, 2014
Location: Melbourne Australia

Re: Autolog LIFX Controller Discussion

That'd be rad


Sent from my iPhone using Tapatalk

Posted on
Tue Sep 30, 2014 8:44 pm
Indy_Larry offline
Posts: 134
Joined: Dec 03, 2013
Location: Indianapolis

Re: Autolog LIFX Controller Discussion

Hi Autolog just wondered if you ever got that new version of Lifx up and going? I seem to recall seeing where you were going to change how the plugin worked.

Thanks,

Larry

Insteon, Z Wave, Hue, Sonos

Posted on
Tue Sep 30, 2014 11:54 pm
autolog offline
Posts: 2456
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+0]

Re: Autolog LIFX Controller Discussion

It is work in progress - I have it running but haven't fully migrated all the code from the previous version yet. I need to iron out a few bugs and implement the preset processing.

I hesitate to give an estimate as to when it will be ready as other things keep getting in the way :(

I'll see what I can do to expedite progress :)

Posted on
Wed Nov 12, 2014 3:00 am
manwithavan offline
User avatar
Posts: 73
Joined: Jan 14, 2014
Location: Melbourne Australia

Re: Autolog LIFX Controller Discussion

Just had a read through of the documentation for your new LIFX plugin, nice work! Very exciting.

Posted on
Mon Dec 22, 2014 12:25 pm
autolog offline
Posts: 2456
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+0]

Re: Autolog LIFX Controller Discussion

I have just released the latest version of the LIFX Controller - see the documentation here :-)

Posted on
Tue Dec 23, 2014 4:34 pm
SSteve offline
User avatar
Posts: 63
Joined: Sep 12, 2012
Location: Sierra Foothills, California

Re: Autolog LIFX Controller Discussion

Thanks, Jon. I'm looking forward to trying it out. It says it requires Indigo 6.0.19 but the latest version is 6.0.18. Are you working from an unreleased copy of Indigo? I copied it into the Indigo 6 Plugins folder, but it doesn't show up in the list of available plugins.

-Steve

Posted on
Tue Dec 23, 2014 4:56 pm
autolog offline
Posts: 2456
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT+0]

Re: Autolog LIFX Controller Discussion

SSteve wrote:
Thanks, Jon. I'm looking forward to trying it out. It says it requires Indigo 6.0.19 but the latest version is 6.0.18. Are you working from an unreleased copy of Indigo? I copied it into the Indigo 6 Plugins folder, but it doesn't show up in the list of available plugins.

-Steve
Hi Steve,

Regarding 6.0.19; no I haven't got a copy of it but Matt has done a change to support some error message processing that I have incorporated into the LIFX plugin - it will still work without it but won't display some errors quite as well (not a major issue) - see this post - 6.0.19 has been a long time coming :wink:

I think the normal way to install a plugin is to double click it and let Indigo move it to the Plugins folder. However, if you restart the Indigo Server it should find it (if it is in the plugins folder). I assume you unzipped it i.e. copied the unzipped LIFX2.indigoPlugin to the plugins folder?

Posted on
Tue Dec 23, 2014 11:25 pm
SSteve offline
User avatar
Posts: 63
Joined: Sep 12, 2012
Location: Sierra Foothills, California

Re: Autolog LIFX Controller Discussion

Hi, Jon. Thanks for the reply. I double-clicked the plug-in and now it shows up. It didn't see my LIFX bulbs at first. When I manually opened a Terminal window and ran lifx-http everything worked fine. I think the problem is that I'm using RVM and lifx-http is installed as part of an RVM gemset. I will do some research to try to figure out how to get the lifx-http command to work when a Terminal window doesn't get opened. But if you already know off the top of your head, I'll happily accept any help! Otherwise, I'll report back when I learn something. It'll be a few days before I look at it, though. We're heading out for Xmas visits tomorrow.

-Steve

Posted on
Tue Dec 30, 2014 4:05 pm
DU Lou offline
Posts: 260
Joined: Mar 08, 2012
Location: Florida

Re: Autolog LIFX Controller Discussion

Hi Jon,
I am playing with the plugin was was able to successfully get the bulbs running in Indigo. However, the "duration" does not appear to be working in plugin configuration. Whether I set it to 1 second to 7 the ramp appears to be the same: a fast on or off.

Any thoughts?

Thanks,
~Lou

Who is online

Users browsing this forum: No registered users and 1 guest