Skip to main content

Overview

Set the target temperature for your thermostat in heating or cooling mode.

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: write

Request

Path Parameters

Request Body

Example Request

Response

Success Response (200 OK)

Error Responses

400 Bad Request:
401/403/429: See authentication docs.

Code Examples

Temperature Scale

  • Celsius: Use "scale": "C" (default)
  • Fahrenheit: Use "scale": "F"
The thermostat internally uses Celsius. If you provide Fahrenheit, it will be converted automatically.
Thermostats round to the nearest 0.5°C increment.

Use Cases

Schedule-Based Control

Smart Adjustments

Next Steps

Set Mode

Change HVAC mode

Set Temperature Range

Set range for heat-cool mode

Get Status

Check current temperature

Set Away Mode

Enable energy-saving mode