用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jacobgao5/hermes-agent --skill smartthings-cli命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Extract text from PDFs and scanned documents. Use web_extract for remote URLs, pymupdf for local text-based PDFs, marker-pdf for OCR/scanned docs. For DOCX use python-docx, for PPTX see the powerpoint skill.
Integrate Feishu (飞书/Lark) messaging platform with Hermes Agent using the built-in platform adapter
Diagnose home appliance faults using local knowledge base before searching external sources
基于 SOC 职业分类
正在显示 SKILL.md
| name | smartthings-cli |
| description | Query and manage SmartThings devices via CLI, with China region support using --environment flag. |
| version | 1.0.0 |
| author | community |
| license | Apache-2.0 |
| metadata | {"hermes":{"tags":["Smart-Home","SmartThings","IoT","Samsung","China-Region"],"homepage":"https://github.com/SmartThingsCommunity/smartthings-cli"}} |
| prerequisites | {"commands":["smartthings"]} |
Command-line interface for managing SmartThings devices, especially for China region users.
npm install -g @smartthings/cli
Requirements: Node.js >= 22 (or at least 20.x may work with warnings)
The SmartThings CLI supports both global and China regions. Use the --environment flag:
# Query devices in China region
smartthings devices --environment china
# Query devices in global region (default)
smartthings devices --environment global
# All devices in China
smartthings devices --environment china
# With verbose output (includes location/room)
smartthings devices --environment china --verbose
# JSON output
smartthings devices --environment china --json
# Filter by capability
smartthings devices --environment china --capability switch
# Filter by device type
smartthings devices --environment china --type zigbee --type zwave
# Get specific device by ID
smartthings devices <device-id> --environment china
# Get device status
smartthings devices:status <device-id> --environment china
# Get device health
smartthings devices:health <device-id> --environment china
# Get device history
smartthings devices:history <device-id> --environment china
# List locations
smartthings locations --environment china
# List rooms in a location
smartthings locations:rooms <location-id> --environment china
# List scenes
smartthings scenes --environment china
# Execute a scene
smartthings scenes:execute <scene-id> --environment china
# List rules
smartthings rules --environment china
~/.config/@smartthings/cli/config.yaml~/Library/Preferences/@smartthings/cli/config.yaml%LOCALAPPDATA%\@smartthings\cli\config.yamlTo avoid typing --environment china every time, add to config:
default:
environment: china
default:
environment: global
china:
environment: china
indent: 2
Use with --profile flag:
smartthings devices --profile china
The CLI automatically opens a browser window for OAuth login on first use.
For headless servers or account switching:
default:
token: <your-pat-uuid>
environment: china
Or use inline:
smartthings devices --token <uuid> --environment china
Available --type filters:
ZIGBEE, ZWAVE, MATTERLAN, MQTT, OCFBLE, BLE_D2DVIRTUAL, MOBILEHUB, GROUPIR, IR_OCFENDPOINT_APP, DTHPENGYOU, SHP, VIDEO, VIPER, WATCHEDGE_CHILDIf you see EBADENGINE warnings about Node version:
# Upgrade Node.js to >= 22
# Or ignore warnings if CLI works
# Force re-login
smartthings logout
smartthings devices --environment china
China region uses different API endpoints. Some features available globally may not be available in China region and vice versa.
# Count devices by type
smartthings devices --environment china --json | jq '[.[] | .type] | group_by(.) | map({type: .[0], count: length})'
# List all switch devices
smartthings devices --environment china --capability switch --json | jq '.[].label'
# Export device list to file
smartthings devices --environment china --json > devices.json