Sign in

Set infrared state

documented

Set infrared state for IR-capable lights.

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 {{LIFX_API_KEY}}' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{"infrared": {{$infrared}}, "brightness": {{$brightness}}}'