Page 1 of 1

LIFX Tip: Brightening & Dimming

PostPosted: Sat Jun 17, 2017 10:48 am
by autolog
Version 4.1.0 of the LIFX Controller plugin now supports all the standard Indigo UI controls.
In particular, it fully enables support for Device Actions > Light/Appliance Controls > Brighten by % | Dim by %

This means you can use another device to control the brightening and dimming of the LIFX device.

I have tested using a Z-Wave Remotec Scene Master ZRC-90 - see http://www.vesternet.com/z-wave-remotec-scene-master

You will need two triggers. The first to do the brightening/dimming while the button is held down and the second to request a LIFX status when the button is released

As an example, to brighten you need to set-up an Indigo Trigger as follows:
  • Trigger
      Type: Z-Wave Command Received
    • Event: Incoming Command Received from Device
    • Edit Event Settings...: From: ZRC-90 Device, Received: Button 1 Held Down
  • Condition: As required - not used?
  • Actions:
    • Type: Brighten by % (Light/Appliance Controls)
    • Device: LIFX device
    • Amount: 2% (or value as required)
The state in the Indigo UI gets updated continuously, but if you want to ensure that the LIFX device is totally consistent with Indigo then when you release the button, it is best to trigger a LIFX Status request, as follows (using example above):
  • Trigger
      Type: Z-Wave Command Received
    • Event: Incoming Command Received from Device
    • Edit Event Settings...: From: ZRC-90 Device, Received: Button 1 Released
  • Condition: As required - not used?
  • Actions:
    • Type: Request Full Status Update (Universal Controls)
    • Device:LIFX device

I guess the same could be done with an Insteon dimmer switch but I don't have any Insteon devices?

Hope this might prove useful :)

Re: LIFX Tip: Brightening & Dimming

PostPosted: Fri Jun 30, 2017 4:19 pm
by kelmk
Hi I'm trying to set this up for an Insteon dimmer switch. I'm confused by the brighten by 2%. How do I get it to keep brightening and not just once? When the Insteon dimmer is held it only sends one command start brightening. How do you get the brighten to loop?
Thanks

Re: LIFX Tip: Brightening & Dimming

PostPosted: Sat Jul 01, 2017 12:27 am
by autolog
With the Z-Wave switch it continually sends dim/brighten commands while you hold the switch down.

Can the Insteon switch be configured to do this? I presume not. :cry:

I will take a look at enhancing the plugin to handle a single brighten command and to set up an internal timer loop to continue brightening/dimming until it receives a button released command.
I am assuming that with the Insteon switch that you get one trigger when you hold the button down and and that you get a further trigger when you release the button?

Not sure how complicated this will be to do but I will investigate it. :)

Re: LIFX Tip: Brightening & Dimming

PostPosted: Sat Jul 01, 2017 12:39 am
by kelmk
Ah that makes sense. The insteon just sends one start dimming message and a stop dimming message. I might have a work around using a repeating schedule every second but your solution sounds cleaner. Thanks!


Sent from my iPad using Tapatalk

Re: LIFX Tip: Brightening & Dimming

PostPosted: Sat Jul 01, 2017 10:28 am
by jay (support)
autolog wrote:
With the Z-Wave switch it continually sends dim/brighten commands while you hold the switch down.

Can the Insteon switch be configured to do this? I presume not. :cry:


No. However, a dimmable Insteon device will send a start brighten/dim when pressed (and held) and a stop brighten/dim when released so those can be used for triggers. So you you subscribe to those Insteon events then your plugin could do some dimming/brightening. I think something similar is sent by the Homeseer Z-Wave switches as well but I'm less clear on that.

Re: LIFX Tip: Brightening & Dimming

PostPosted: Wed Jul 05, 2017 8:09 am
by autolog
I will restart the work to look at this - I got sidetracked sorting out the no ack bug..
It is doable but won't be quite as quick as I had hoped - maybe a week or two (depends on other commitments). :)

Re: LIFX Tip: Brightening & Dimming

PostPosted: Sun Aug 20, 2017 1:06 am
by kelmk
autolog wrote:
I will restart the work to look at this - I got sidetracked sorting out the no ack bug..
It is doable but won't be quite as quick as I had hoped - maybe a week or two (depends on other commitments). :)

Have you had a chance to look at this? No rush, just curious.



Sent from my iPad using Tapatalk

Re: LIFX Tip: Brightening & Dimming

PostPosted: Mon Aug 21, 2017 2:11 am
by autolog
kelmk wrote:
Have you had a chance to look at this? No rush, just curious.


Not yet but I will take another look at it shortly as I have doing some bug corrections to the LIFX plugin. :)

Re: LIFX Tip: Brightening & Dimming

PostPosted: Sun Aug 27, 2017 11:06 pm
by koensayr
I'd be interested in figuring out a way to get it to function. So far, I can't seem to do it via triggers while holding the dimming button down. I can only get the adjustment to happen once the button is released (stop brighten status) as Jay suggested above.

Please let me know if there is anything I can do to help!

Re: LIFX Tip: Brightening & Dimming

PostPosted: Mon Aug 28, 2017 10:41 am
by autolog
I will start looking at this shortly but the UK Bank Holiday weekend has got in the way. :wink: