Home & sleep

Change home settings

PUT/api/home
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

Any of the wake-up alarm (days, how long the sunrise takes, where, its end colour and brightness, hold and snooze), the default sleep timer, and the ambient plan's rows.

Request body application/json

wakeobject
sleepobject
planobject

Responses

200OKapplication/json
wakeobject
sleepobject
planobject
statusobject
400The body isn't valid JSON, or a value is wrong.application/json
errorstringrequired

What went wrong, in a sentence for people.

403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X PUT 'http://localhost:8080/api/home' \
  -H 'content-type: application/json' \
  -d '{
  "wake": {
    "enabled": true,
    "source": "times",
    "days": [
      "",
      "07:00",
      "07:00",
      "07:00",
      "07:00",
      "07:00",
      ""
    ],
    "duration": 20,
    "target": "all"
  }
}'
Response
{
  "wake": {
    "enabled": true,
    "source": "times",
    "days": [
      "string"
    ],
    "duration": 0,
    "target": "string",
    "endColor": "#ff0066",
    "endBrightness": 0,
    "holdMin": 0,
    "snoozeMin": 0,
    "key": "string"
  },
  "sleep": {
    "minutes": 0
  },
  "plan": {
    "enabled": true,
    "fade": 0,
    "rows": [
      {
        "name": "string",
        "from": "string",
        "to": "string",
        "look": "string",
        "palette": "string",
        "kelvin": 0,
        "brightness": 0
      }
    ]
  },
  "status": {
    "wake": null,
    "nextWake": "2026-11-05T06:30:00.000Z",
    "sleep": {
      "start": "2026-11-04T22:00:00.000Z",
      "end": "2026-11-04T22:30:00.000Z",
      "progress": 0.2,
      "left": 1440
    },
    "plan": null
  }
}
Edit on GitHub