Apologies if this is the wrong place but any thoughts on how I would go about creating a colour sequence, similar to colour cycle in the Lifx ios app?
Colin
colinpartridge wrote:Apologies if this is the wrong place but any thoughts on how I would go about creating a colour sequence, similar to colour cycle in the Lifx ios app?
autolog wrote:Hi Colin,colinpartridge wrote:Apologies if this is the wrong place but any thoughts on how I would go about creating a colour sequence, similar to colour cycle in the Lifx ios app?
Definitely not the wrong place.
I haven't explored these options but have just taken a look at it. I think it would be quite difficult for a user to do from the plugin as it stands at the moment.
Are you using it on just one lamp or on a group of lamps?
My next task when I get back to the LIFX plugin is to add in Groups processing. Once this is in then it should make controlling a group of lamps a lot easier.
For the colour Cycle, I think there would need to be specific processing put into the plugin. Now that I have restructured the plugin to use the lifxlan library it is definitely doable.
I'll add it to the list
autolog wrote:I have now released the Indigo 7 version of my LIFX plugin (for those of you following this thread).
See the announcement here: LIFX Controller (V4) Information
OK - That's the marketing done - I'll await feedback and reports of any issues
autolog wrote:Hi Colin,
Thinking about it, it is possible to do something but not as simple as the iOS App (yet ).
You can set-up an Action Group using a series of Set Color / White (Standard and Waveform) commands.
The first action (Standard) is to turn on the lamp and set its starting colour (e.g. red).
The next action (e.g. delayed by 2 seconds) is to set up an action (Waveform).
In this action choose your second colour (e.g. Magenta) and set up a period of '30000' = 30 seconds and a cycle of 10 (which gives 5 minutes).
Set the waveform to Sine which gives smooth transitions.
Save and run the action group and your light will change between the two colours for 5 minutes.
You can now setup another action with a delay of 5 minutes and 2 seconds to set another base colour (e.g. magenta)
and then duplicate the existing waveform action and set its colour to e.g. blue and save with a delay of 5 minutes and 4 seconds.
The delays are important on the Waveform command to make sure that the Standard command has set the starting colour before the Waveform command executes
So you now have a sequence that will run for 10 minutes.
You can then setup a schedule to execute the action every 10 minutes and you are good to go.
Obviously you can play around with the colours, cycle time and delays to get the desired effect.
As long as you set a duration of say 2 seconds on the Standard action then it should all appear to be seamless - just tested it out and it appears to work
Not quite as good as the iOS effect but possibly a useful stopgap until I can do something better in the plugin.
20 Dec 2016, 11:03:53 am
LIFX LIFX Device 'G Table Lamp' re-connected at 203.219.105.XXX [d0:73:d5:10:85:49] using Port 56700
LIFX LIFX Device 'G Table Lamp' started.
LIFX LIFX Device 'L Tall LIFX' re-connected at 203.219.105.XXX [d0:73:d5:10:7b:49] using Port 56700
LIFX LIFX Device 'L Tall LIFX' started.
manwithavan wrote:... It's only these two of the fourteen LIFX devices that log this 're-connection', sometimes only one will log it in each polling period, sometimes multiple it'll happen multiple times in each polling period. ...
Users browsing this forum: No registered users and 5 guests