LIFX integration (Developer Tools). Imported from open-connector.
https://api.lifx.com/v1/lights/{selector}
| Param | Type | Required | Description |
|---|---|---|---|
| selector | string | required | The LIFX selector to address lights, such as `all`, `id:d073d5141876`, `group:K… |
/lights/{selector}/state
| Param | Type | Required | Description |
|---|---|---|---|
| selector | string | required | The LIFX selector to address lights, such as `all`, `id:d073d5141876`, `group:K… |
| power | string | optional | The target power state. |
| color | string | optional | The LIFX color string to set, such as `blue saturation:0.5`. |
| brightness | number | optional | The brightness level from 0.0 to 1.0. |
| duration | number | optional | The transition duration in seconds. |
| infrared | number | optional | The maximum brightness of the infrared channel from 0.0 to 1.0. |
| fast | boolean | optional | Whether to use LIFX fast mode and return as soon as the request is accepted. |
/lights/{selector}/toggle
| Param | Type | Required | Description |
|---|---|---|---|
| selector | string | required | The LIFX selector to address lights, such as `all`, `id:d073d5141876`, `group:K… |
| duration | number | optional | The transition duration in seconds. |
/scenes
/
| Param | Type | Required | Description |
|---|---|---|---|
| sceneUuid | string | required | The UUID of the LIFX scene to activate. |
| duration | number | optional | The transition duration in seconds. |
| ignore | array | optional | Scene state fields LIFX should not change when applying the scene. |
| overrides | object | optional | A LIFX state object to apply to all devices in the scene, overriding the scene … |
| fast | boolean | optional | Whether to use LIFX fast mode and return as soon as the request is accepted. |
/color
| Param | Type | Required | Description |
|---|---|---|---|
| color | string | required | The LIFX color string to validate, such as `red` or `kelvin:2700`. |