---
updatedAt: 2025-06-02T21:21:45.000Z
agentTools:
  projectIndex: https://api.developer.lifx.com/llms.txt
---

# Sunrise Effect

Performs a sunrise effect on the tiles in your selector, if supported. Use the parameters to tweak the effect. Note that the brightness of the sunrise is determined by the brightness of the tile. To change the brightness, use the SetState endpoint. Requires firmware >= 4.8.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.lifx.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/lights/{selector}/effects/sunrise": {
      "post": {
        "summary": "Sunrise Effect",
        "description": "",
        "operationId": "clouds-effect-copy",
        "parameters": [
          {
            "name": "selector",
            "in": "path",
            "description": "The [selector](doc:selectors) to limit which devices will run the effect.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "duration": {
                    "type": "number",
                    "description": "How long the animation takes in seconds. Specifying 0 makes the animation stop.",
                    "default": 10,
                    "format": "float"
                  },
                  "persist": {
                    "type": "boolean",
                    "description": "This persists the final colour of the animation on effect completion, instead of reverting to the previous state of the light.",
                    "default": false
                  },
                  "fast": {
                    "type": "boolean",
                    "description": "Execute the query [fast](doc:set-state#fast-mode), without initial state checks and wait for no results.",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "2XX",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"results\": [\n    {\n      \"id\": \"d3b2f2d97452\",\n      \"label\": \"My tile\",\n      \"status\": \"ok\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "d3b2f2d97452"
                          },
                          "label": {
                            "type": "string",
                            "example": "My tile"
                          },
                          "status": {
                            "type": "string",
                            "example": "ok"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```