Lights & show

Set the zones

PUT/api/zones
Guest area “effects”. Open unless a PIN lock is set and guests aren't allowed this area (settings.guest.effects); then it needs an unlock token.

Replaces the zones (at most 32). A zone follows the show, shows its own effect, the ambient look, or is off. Shapes join a zone with their zone field.

Request body application/json

zonesobject[]required
0 to 32 items

Responses

200OKapplication/json
object[]
idstring
namestring
modestring
One of "follow" "effect" "ambient" "off"
effectstring | null

For mode effect.

brightnessnumber
0 to 1
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/zones' \
  -H 'content-type: application/json' \
  -d '{
  "zones": [
    {
      "id": "z1",
      "name": "Desk",
      "mode": "effect",
      "effect": "aurora",
      "brightness": 0.7
    }
  ]
}'
Response
[
  {
    "id": "z1",
    "name": "Desk",
    "mode": "effect",
    "effect": "aurora",
    "brightness": 0.7
  }
]
Edit on GitHub