Skip to main content

Overview

The /thermostat/{deviceId}/status endpoint returns the complete state of a thermostat, including current temperature, target temperature, HVAC mode, fan settings, schedule, and all other device properties.

Endpoint

Hosted service only. This endpoint is part of the hosted API at https://nolongerevil.com/api/v1 and requires an nle_ API key. It is not available on the self-hosted server.

Authentication

Required Scopes: read Include your API key in the Authorization header:

Request

Path Parameters

Headers

Example Request

Response

Success Response (200 OK)

Response Fields

Key State Fields (shared..value)

Error Responses

401 Unauthorized

Cause: Missing or invalid API key.

403 Forbidden

Cause: Your API key doesn’t have permission to access this device. Solution: Check that the device ID is correct and your API key has access to it.

404 Not Found

Cause: Device ID doesn’t exist or you don’t have access to it.

429 Too Many Requests

Code Examples

Use Cases

Temperature Monitoring

Poll device status to monitor temperature changes:

Energy Usage Tracking

Track HVAC system activity:

Smart Automations

Build conditional logic based on device state:

State Object Keys

The state object contains multiple sub-objects with different types of data:
  • shared.{serial}: Shared device state (temperature, mode, HVAC status)
  • device.{serial}: Device-specific settings (scale, timers, locks)
  • user.{userId}: User preferences and settings
  • structure.{structureId}: Home/structure-wide settings
  • schedule.{serial}: Device schedule (if configured)
Object revisions (object_revision) and timestamps (object_timestamp) are used for state synchronization and conflict resolution. You typically don’t need to use these values.

Next Steps

Set Temperature

Change the target temperature

Set Mode

Change HVAC mode

Set Away Mode

Toggle between home and away

List Devices

Get all your devices