Skip to content
TakoAPI
Back to skills

nest-sdm

by tag-assistant

Smart Home & IoT
443Downloads reported by clawskills.sh
0Views
0 likesSign in to like this skill
—Not yet rated
Your rating

Brief

Control Nest thermostat, doorbell, and cameras via the Google Smart Device Management (SDM) API.

Description

What This Skill Does

Controls Google Nest thermostats, doorbells, and cameras through the Smart Device Management REST API. Handles OAuth token management, Fahrenheit/Celsius conversion, and real-time event streaming via GCP Pub/Sub.

Provides scriptable CLI access to Nest devices so they can be integrated into shell scripts and automation pipelines without the Nest mobile app.

When to Use It

  • Set thermostat to heat/cool range before arriving home
  • Receive alerts when motion or a person is detected on a camera
  • Switch thermostat to eco mode when leaving for the day
  • Monitor HVAC state changes and temperature setpoints in real time

Example Workflow

INPUT

User asks: set my thermostat to heat/cool between 68 and 74 degrees

AGENT
  1. 1

    Load OAuth tokens from ~/.openclaw/workspace/.nest-sdm-tokens.json

  2. 2

    Call SDM API to list devices and identify the thermostat device ID

  3. 3

    Convert 68°F and 74°F to Celsius for the API

  4. 4

    Execute ThermostatTemperatureSetpoint.SetRange with the converted heat and cool values

  5. 5

    Return updated thermostat status confirming HEATCOOL mode

OUTPUT

Thermostat set to HEATCOOL mode: heat at 68°F (20°C), cool at 74°F (23.3°C)

Requirements

  • Google Device Access Console registration at console.nest.google.com ($5 one-time fee)
  • GCP project with Smart Device Management API enabled
  • OAuth 2.0 client ID and client secret from Google Cloud Console
  • Refresh token obtained via OAuth authorization flow as the Nest device owner
  • TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables (optional, for event alerts)

Installation

clawhub install tag-assistant/nest-sdm

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links