Set Toggle Power

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 turn on/turn off 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 turn on/turn off 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 that you wish to turn on/turn off. 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. 

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

set-toggle-power

Once you have entered all the details, click on 'Done' and 'Run' the workflow. This will turn on/turn off the specified light(s).

Refer to API documentation for more information: https://api.developer.lifx.com/docs/toggle-power

Output:
  • output-arrow lifx-128 Set Toggle Power
    • left-triangle results array
      • left-triangle id string
      • left-triangle label string
      • left-triangle status string