← Tools Reference

LIFX

LIFX integration (Developer Tools). Imported from open-connector.

API key6 toolshttps://api.lifx.com/v1
GET
lifx_list_lights
List LIFX lights visible to the API token, optionally limited by a selector.

/lights/{selector}

1 parameter
ParamTypeRequiredDescription
selectorstringrequiredThe LIFX selector to address lights, such as `all`, `id:d073d5141876`, `group:K…
PUT
lifx_set_state
Set power, color, brightness, infrared, or transition duration for LIFX lights matching a selector.

/lights/{selector}/state

7 parameters
ParamTypeRequiredDescription
selectorstringrequiredThe LIFX selector to address lights, such as `all`, `id:d073d5141876`, `group:K…
powerstringoptionalThe target power state.
colorstringoptionalThe LIFX color string to set, such as `blue saturation:0.5`.
brightnessnumberoptionalThe brightness level from 0.0 to 1.0.
durationnumberoptionalThe transition duration in seconds.
infrarednumberoptionalThe maximum brightness of the infrared channel from 0.0 to 1.0.
fastbooleanoptionalWhether to use LIFX fast mode and return as soon as the request is accepted.
POST
lifx_toggle_power
Toggle the power state for LIFX lights matching a selector.

/lights/{selector}/toggle

2 parameters
ParamTypeRequiredDescription
selectorstringrequiredThe LIFX selector to address lights, such as `all`, `id:d073d5141876`, `group:K…
durationnumberoptionalThe transition duration in seconds.
GET
lifx_list_scenes
List scenes available to the authenticated LIFX account.

/scenes

PUT
lifx_activate_scene
Activate a LIFX scene by UUID, optionally overriding or ignoring state fields.

/

5 parameters
ParamTypeRequiredDescription
sceneUuidstringrequiredThe UUID of the LIFX scene to activate.
durationnumberoptionalThe transition duration in seconds.
ignorearrayoptionalScene state fields LIFX should not change when applying the scene.
overridesobjectoptionalA LIFX state object to apply to all devices in the scene, overriding the scene …
fastbooleanoptionalWhether to use LIFX fast mode and return as soon as the request is accepted.
GET
lifx_validate_color
Validate a LIFX color string and return the hue, saturation, brightness, and kelvin values LIFX will use.

/color

1 parameter
ParamTypeRequiredDescription
colorstringrequiredThe LIFX color string to validate, such as `red` or `kelvin:2700`.