Get Lights

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 retrieve the details of the specified light(s) from your LIFX account. 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 retrieve the details of all lights or a specific light. 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 to retrieve the details. Available options are 'Light ID', ‘Light Label', Group_ID', and 'Group'. By default, the value for this field is set to 'Light ID'.  

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

get-lights

Once you have entered all the details, click on 'Done' and 'Run' the workflow. This will retrieve the details of a specific light or all lights from your LIFX account. 

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

Output:
  • output-arrow lifx-128 Get Lights
    • left-triangle response array
      • left-triangle id string
      • left-triangle uuid string
      • left-triangle label string
      • left-triangle connected boolean
      • left-triangle power string
      • left-triangle color object
      • left-triangle brightness number
      • left-triangle group object
      • left-triangle location object
      • left-triangle product object
      • left-triangle last_seen string
      • left-triangle seconds_since_seen number