LIFX Plugin

Well, in any case, it still doesn’t work.

Did you replace your api key in the auth file?

Welcome to the concept of whitespace characters, or whatever they’re called…

C

Yes. I had remembered that embarrassment from the last time.

Anyone know why this JUNK keeps two identical copies of files rather than writing over them?? I’m at my wit’s end here, so I’ll look at this again tomorrow if I can stomach it.

EDIT: So it looks like what’s confusing me is that there were files mirroring the lua files with .lzo extensions, and the Vera webserver was not listing the extensions, thereby giving it the appearance that there were 2 of each of the 3 files. I have deleted the .lzo files, since I guess those are previous (compressed) versions that were copied over through the app store or the webserver interface rather than SCP. Still not having any luck with scripts however. I will try a hard reset by unplugging the Vera rather than rebooting through the webserver. …and nothing. :frowning:

In order for me to test the script in the " Test Luup code" window I had to enable the “Enable potentially unsafe lua code, like wget and RunLua.” in the security settings but as part of scenes they run fine without this option…you will need to edit the scenes to call “lifx_ctrl.lifx_ctrl”.

I have those settings enabled, and I followed your directions exactly as you described in the post with the new file attached. I can’t get this to work in the test box, or in a scene:

lifx_ctrl.lifx_ctrl("group:Kitchen", "on", 1)

I have tried rebooting a number of times to ensure that the Startup Lua was properly initialized. My authorization key is entered, all of my devices and scenes show in the list, and I can turn lights on and off using conventional scene actions. Testing a scene tells me that it’s successful, but nothing happens, testing in the test box says that it failed. I’m completely baffled as to what is causing this issue. I guess it’s not possible to have the effects using the “Advanced Editor” in scene creation? Scripting is way more powerful, but at this point I just want my notifications back.

I will pm you later on…

I would be grateful

What about the LIFX Tiles are they supported regarding Effects like (Fire, Colour Cycle etc ) ?

Tile specific effects are not supported, I can add them but don’t have any tiles for testing.

@Majimus
Apparently the problem with the scripts has something to do with the lack of support for TLSv1.2 for interfacing with LIFX API (according to the author of the original LIFX app: Instructions and Steps to Implement LIFX API - Part II - #6 by joek - Lighting & Load Control - Ezlo Community ).
Meanwhile I’ve been confused AF, since there are now 2 LIFX apps and I’ve been thinking that they were one project.

@Quixote, sorry for the confusion let me try to clarify and hopefully my understanding is correct. If memory serves me right there is another LIFX plugin on the mios app store, the one by me was the first IIRC.

The plugin was written because I wanted to use some LIFX bulbs in a project and also considered leveraging the vera as part of the system but there was no plugin at the time only the script.

A number of people including yourself was using the “script” from Joe and since he was MIA and you folks were asking for support I took it upon myself to land a hand to the script and made a few changes to make it easier for pushing changes to the community.

I never had, nor do I have any interest in being the maintainer of the said script. Since Joe is back, we can let him carry on. My vision of the script varied from Joe’s but he should be able to get you back on track. I can also assist with removal of the one modified by me if it comes to that.

I continue to use the plugin on a daily basis, making an effort to address issues that arise from time to time.There is an incompatibility with the TLS setting in the latest firmware and an update has been posted to the app store (pending approval).

Hope that clears up the confusion.

Majimus

Lifx Plugin 8986

This is the plugin that I wrote and continue to update, the other one is by someone else.

Hi and thanks for your reply,
Once the update to your plugin is made available, will the TLS incompatibility be corrected for the script implementation in your app as well? I don’t think the script itself requires maintenance. If not, will it be possible to use both plugins simultaneously? I like a lot of characteristics of your app, but also enjoy the added versatility of having scripts for light notifications (pulse/breathe) and scene activations.
It’s too bad you guys can’t work cooperatively for the different capabilities.
Thanks

Quixote,

I am aware of, and intrigued by the fact that folks have been leveraging plugin 8986 in ways that I did not imagine. I see no reason why that would change once the TLS issues have been resolved (I really have no idea the scope of what people are doing with the thing apart from a few support requests in the earlier days).

I doubt that Joe requires my assistance with the script he started now that he is back, consider my intrusion a helping hand in his absence.

Majimus

Glad to hear it. Hopefully the amended version will be approved soon so I can try it out. You’d be surprised at how useful it is to have lights flash specific colors when a motion sensor is tripped or someone rings the doorbell.

Not really sure if Joe is actually back. His responses are rather sporadic. That said, I’m sure he doesn’t really need your help, nor do you need his. A merge would certainly enhance the functionality of both, not to mention lessen your load – or rather eliminate altogether your obviously despised task of “maintaining the script”. Anyway, just a thought. I’m sure everyone using LIFX products will continue to appreciate the fact that you’re offering this to us out of generosity. Ultimately I guess putting work into a Vera plugin is like renovating an apartment in an abandoned building that is falling down around you.
Thanks again

Is it just my setup, or has anyone noticed that suddenly in the last few days the “setloadleveltarget” does nothing?
I can set the colorRGB, no problems, and turn the LIFX lights on and off, but suddenly for the last few days, it hasn’t adjusted the brightness level.
It’s a bit of a shock to the system when you get up in the middle of the night, the motion sensor see’s you in the hallway and bam, 100% instant light, wakes you up pretty quick!

Just taking a look, seems like loadlevel via the cloud is broken…with local control it works just fine.

Thanks for pointing it out, will try to resolve as soon.

Majimus.

Awesome, it is by far one of the most used apps on my vera, I’ve got automated LIFX lights throughout my house!