Devices & room
List devices
GET
/api/devicesOpen. Open to everyone who can reach Tempolight.
Your devices, each with health: the last check. Hue user names and client keys and Nanoleaf tokens never leave the server.
Responses
200OKapplication/json
object[]
idstringrequiredd…
namestringrequiredhoststringrequiredIts address (virtual for a virtual room).
kindstringLeft out for WLED.
One of
"govee" "openrgb" "hue" "nanoleaf" "lifx" "wiz" "kasa" "yeelight" "twinkly" "dmx"ledsintegerddpPortintegerenabledbooleanvirtualbooleanprotocolstringOne of
"ddp" "e131" "artnet"universeintegermaxAmpsnumber0 to 500mAperLednumber5 to 200goveeModestringOne of
"color" "segments"goveeSegmentsintegerlightLatencyMsintegerThis light's own delay set by hand, 0-500 ms (light timing). Left out: estimated.
0 to 500lightobjectSmart lights: what was found (for example zones) and their options.
hueobjectHue bridges only.
nanoleafobjectNanoleaf only.
fixturesobject[]DMX devices only.
healthobject | nullRequest
curl 'http://localhost:8080/api/devices'const res = await fetch("http://localhost:8080/api/devices");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/devices",
)
print(res.json())Response
[
{
"id": "d4k2x9",
"name": "Desk strip",
"host": "192.168.1.42",
"ddpPort": 4048,
"leds": 120,
"enabled": true
}
]