Overview
Scans the/24 subnet derived from the server’s api_origin setting and returns all Nest devices found on port 8080. For each device found, it reports whether the device is already configured to point at this server.
Endpoint
Response
Success (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
devices | array | Found Nest devices |
subnet | string | The subnet that was scanned |
devices[].ip | string | Device IP address |
devices[].device_name | string | Device name as configured on the thermostat |
devices[].cloudregisterurl | string | Current server URL the device is pointed at |
devices[].configured | boolean | true if device is already pointed at this server |
Error (400 Bad Request)
How It Works
The scan:- Derives the subnet from your server’s
API_ORIGINsetting (e.g.,http://192.168.1.100:8000→ scan192.168.1.0/24) - Concurrently probes all 254 hosts for a Nest local API on port 8080 (
GET /cgi-bin/api/settings) - Returns devices that responded, comparing their
cloudregisterurlto your server’s origin
Typical Workflow
Example
Related
POST /api/configure-nest
Point a discovered device at this server
POST /api/register
Register a device after configuring it