Skip to main content

Overview

Get the current thermostat schedule or update it with a new schedule configuration.
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.

Endpoints

Authentication

Required Scopes:
  • read for GET
  • write for PUT

Get Schedule

Request

Response (200 OK)

Response if No Schedule

Update Schedule

Request

Request Body

Schedule Structure

Days Object

Keys are day of week (0 = Sunday, 6 = Saturday):

Schedule Entry

Each day contains numbered entries (0, 1, 2, …): Example: 6:00 AM = 21600 seconds (6 × 60 × 60)

Code Examples

Use Cases

Simple Weekly Schedule

Copy Schedule

Schedules are complex objects. It’s recommended to get the existing schedule, modify it, and update it rather than creating from scratch.

Next Steps

Set Temperature

Manual temperature control

Get Status

Check current settings