Set Light State

LIFX is a line of wi-fi enabled bulbs that can be controlled through a wide range of wi-fi equipped devices. This action lets you set the state of a specific light or all lights. To do this, add this action to your canvas and configure it. Select the appropriate connection for LIFX from the drop-down list. If you haven’t created a connection yet, select ‘Add New’ to create one. 

Field data

Choose Mode of Selectors: Specify if you wish to set the state for a specific light or all lights.  Available options are 'All lights' and 'Specific Light'. By default, the value for this field is set to 'All Lights'. If you select the 'Specific Light' option, you will need to enter the following details.

   - Selector Type (Mandatory): Specify the selector type for a specific light of which you wish you set the state. Available options are 'ID', Label', Group_ID', 'Group', 'Location_ID', and 'Location'. By default, the value for this field is set to 'ID'.  

   - Selector Value (Mandatory): Enter the value for the specified selector type. 

Power (Mandatory): Specify the power state that you wish to set for the selectors. Available options are 'On' and 'Off'. By default, the value for this field is set to 'On'.

Color (Optional): Specify the color that you wish to set the light to. You can specify the color in one of the two formats: 'Name' or '#RRGGBB' values. 

Brightness (Optional): Specify the value for brightness. This value should be in the range of 0.0 to 1.0. It overrides any value for brightness set in the in the 'Color' field. 

Duration (Optional): Specify the duration (in seconds) the power action should take. The minimum value is 0.0 and the maximum value is 3155760000.0 (100 years).


Once you have entered all the details, click on 'Done' and 'Run' the workflow. This will set the state for the specified light(s). 

Refer to API documentation for more information:

  • output-arrow lifx-128 Set Lights State
    • left-triangle results array
      • left-triangle id string
      • left-triangle label string
      • left-triangle status string