google-home
БесплатноБез исполняемых скриптовНе проверенControl Google Nest devices (thermostats, cameras, doorbells) via the Google Smart Device Management API using curl and jq.
от sundial-org★ 676 звёзд на GitHubОб этом скилле
Google Home / Nest CLI
Control Google Nest devices via the Smart Device Management (SDM) API using curl + jq.
Setup (Required)
Create a Google Cloud Project
- Go to https://console.cloud.google.com
- Create a new project
Enable the SDM API
- APIs & Services → Library
- Search "Smart Device Management"
- Enable it
Create OAuth Credentials
- APIs & Services → Credentials
- Create OAuth 2.0 Client ID
- Download the JSON file
- Extract
client_idandclient_secret
Register Your Devices
- Visit https://nests.google.com/frame/register-user
- Accept the terms
Get Access Token
# Replace with your values curl -s \ -d "client_id=YOUR_CLIENT_ID" \ -d "client_secret=YOUR_CLIENT_SECRET" \ -d "refresh_token=YOUR_REFRESH_TOKEN" \ -d "grant_type=refresh_token" \ https://www.googleapis.com/oauth2/v4/token
Quick Start
# List devices
google-home-cli devices
# Get thermostat info
google-home-cli thermostat "Living Room" --info
# Set temperature (heat/cool/auto)
google-home-cli thermostat "Living Room" --temp 72
# Query camera
google-home-cli camera "Front Door" --status
Device Commands
Thermostats
google-home-cli thermostat <name>— show current temp/humidity--temp <degrees>— set target temperature--mode heat|cool|auto— set HVAC mode--fan on|auto— control fan
Cameras & Doorbells
google-home-cli camera <name>— get stream/status--snapshot— download current image--stream— start live stream URL
Speakers & Displays
google-home-cli speaker <name>— device info--volume 0-100— set volume--stop— stop playback
Environment Variables
export GOOGLE_HOME_CLIENT_ID="your-client-id"
export GOOGLE_HOME_CLIENT_SECRET="your-client-secret"
export GOOGLE_HOME_ACCESS_TOKEN="your-access-token"
Alternative: Direct API Calls
# List all devices
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://smartdevicemanagement.googleapis.com/v1/enterprises/YOUR_PROJECT_ID/devices"
# Get device traits
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://smartdevicemanagement.googleapis.com/v1/enterprises/YOUR_PROJECT_ID/devices/YOUR_DEVICE_ID"
Helper Script
A nest CLI helper is included at scripts/nest:
# Make it available globally
ln -sf /Users/mitchellbernstein/clawd/skills/google-home/scripts/nest /usr/local/bin/nest
# List devices
nest list
# Get thermostat status
nest status "enterprises/PROJECT_ID/devices/DEVICE_ID"
# Set temperature (Celsius)
nest temp "enterprises/PROJECT_ID/devices/DEVICE_ID" 22
# Set mode
nest mode "enterprises/PROJECT_ID/devices/DEVICE_ID" HEAT
Configuration
Create ~/.config/google-home/config.json:
{
"project_id": "your-google-cloud-project-id",
"access_token": "your-oauth-access-token"
}
Notes
- Tokens expire; refresh them periodically
- Device names use full path:
enterprises/PROJECT_ID/devices/DEVICE_ID - Temperature is in Celsius (convert from Fahrenheit if needed)
- Camera streams require additional permissions
Установить google-home в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл google-home?
Control Google Nest devices (thermostats, cameras, doorbells) via the Google Smart Device Management API using curl and jq.
Как установить скилл google-home?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-home запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic