Lights & show

Set brightness

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

Sets the master brightness, 0 to 1 (out of range is clamped).

Request body application/json

valuenumberrequired

0 to 1.

0 to 1

Responses

200OKapplication/json
brightnessnumber
403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/brightness' \
  -H 'content-type: application/json' \
  -d '{
  "value": 0.6
}'
Response
{
  "brightness": 0.6
}
Edit on GitHub