Devices & room

Find devices

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

Looks for WLED controllers (mDNS and a network scan), Govee lights, OpenRGB devices on this computer and LIFX, WiZ, Kasa, Yeelight and Twinkly lights. Each says whether it is added already. Takes a few seconds.

Request body application/json optional

scanboolean

Also scan the network (default true).

hostsstring[]

Extra addresses to try.

Responses

200OKapplication/json
object[]
hoststring
ipstring
namestring
ledsinteger
kindstring

Left out for WLED.

indexinteger

OpenRGB only.

addedboolean

Already one of your devices.

403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/discover' \
  -H 'content-type: application/json' \
  -d '{
  "scan": true
}'
Response
[
  {
    "host": "wled-desk.local",
    "ip": "192.168.1.42",
    "name": "WLED-Desk",
    "leds": 120,
    "added": false
  }
]
Edit on GitHub