Sign in

Set state

documented

Set the color, brightness, and other state parameters for the specified light(s).

PUT /v1/lights/{selector}/stateLightsno 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/{{$selector}}/state" \
  -X PUT \\
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/json" \\
  -d '{"power": "{{$power}}", "color": "{{$color}}", "brightness": {{$brightness}}, "duration": {{$duration}}}'