Sign in

Set states

documented

Set multiple states across multiple selectors in a single request.

PUT /v1/lights/statesLightsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.lifx.com/v1/lights/states" \
  -X PUT \
  -H "Authorization: Bearer {{LIFX_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"states": [{"selector": "{{$selector}}", "power": "{{$power}}", "color": "{{$color}}", "brightness": {{$brightness}}}]}'