Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

smartthings

БесплатноБез исполняемых скриптовНе проверен

Read status and drive Samsung SmartThings devices — locations, rooms, modes, scenes, health, history, virtual switches — with confirmation-gated actuation…

gabrielmoreiraот gabrielmoreira★ 23 звезды на GitHub

Об этом скилле

SmartThings

Purpose

Read device status and issue capability commands across a Samsung SmartThings account: locations, rooms, devices (switches, dimmers, locks, thermostats, sirens, garage door controllers, window shades, sensors), location modes, scenes, device health, device-event history, cloud virtual switches, and MQTT broker discovery. Use it when the user asks about or wants to change the state of anything paired to their SmartThings hub or cloud account. This connector drives real physical hardware, so writes are confirmation-gated in the CLI itself (see Operating Rules).

Source: SmartThings API documentation (developer.smartthings.com), checked 2026-10-19. This version supersedes the earlier Draft catalog entry: the full CLI surface, health/history/MQTT commands, MCP-first route, and durable OAuth-refresh design come from a production deployment, and the actuation gating merges that entry's risk grading with hardened confirmation binding.

Tooling

All commands go through bin/smartthings.py:

bin/smartthings.py auth                                    # status check: list locations
bin/smartthings.py locations                               # list locations
bin/smartthings.py rooms <locationId>                      # list rooms
bin/smartthings.py devices                                 # list devices (id, label, type)
bin/smartthings.py device <deviceId>                       # full device payload
bin/smartthings.py status <deviceId>                       # live capability states
bin/smartthings.py health <deviceId>                       # ONLINE / OFFLINE
bin/smartthings.py history [locationId] [--device <deviceId>] [--limit N]   # device-event history
bin/smartthings.py modes <locationId>                      # list location modes
bin/smartthings.py mode-current <locationId>               # current location mode
bin/smartthings.py mqtt-broker [locationId]                # MQTT broker URL for a location
bin/smartthings.py scenes                                  # list scenes

# Writes — confirmation-gated (see Operating Rules):
bin/smartthings.py command <deviceId> lock unlock --confirm "lock:unlock:<deviceId>"
bin/smartthings.py command <deviceId> switchLevel setLevel --arg 80 --confirm "dim the light to 80 percent"
bin/smartthings.py command <deviceId> switch on '[...]'    # args via [args-json] OR repeatable --arg, never both
bin/smartthings.py scene <sceneId> --confirm "run the goodnight scene"
bin/smartthings.py mode-set <locationId> <modeId|name> --confirm "set home mode to Night"
bin/smartthings.py vswitch <name> <roomId> [locationId] --confirm "create virtual switch Porch"
bin/smartthings.py delete <deviceId> --confirm "delete device <deviceId>"

--component defaults to main. Where a locationId is optional it defaults to the account's first location. Sensor reads come straight from status (for example illuminance in lux at components.main.illuminanceMeasurement.illuminance.value, motion at components.main.motionSensor.motion.value — always check the value's timestamp: motion is a recency signal, not true occupancy).

Route note (production design): for high-frequency agent reads, the production deployment this comes from prefers the SmartThings MCP server (veonua/smartthings-mcp) for device list/status/commands/history and uses this CLI for what the MCP lacks — location modes, scenes, virtual-switch creation, health, and full-fidelity payloads. Either route talks to the same API with the same credential; the gating rules below apply to this CLI.

Auth

  • Provider id: smartthings (credential is collected as custom.smartthings)
  • Collection: OAuth 2.0 authorization-code flow via the secure credential flow (credentials.request_api_access). Set up: create an app at developer.smartthings.com with the scopes the user needs, complete the authorization-code grant, and store the resulting tokens. Personal Access Tokens now expire after about 24 hours, so a persistent connector must use the OAuth flow, not a PAT.
  • Required scopes: r:devices:* at minimum for reads; add x:devices:* (commands) only for the devices the user wants Muse to actuate. Location/mode/scene operations need their matching r:/x: scopes (locations, modes, scenes).
  • Allowed hosts: api.smartthings.com
  • Status check: bin/smartthings.py auth

Durable OAuth refresh (production design): the token manager keeps the access + refresh tokens in a local store and refreshes proactively (5 minutes before expiry): POST to https://api.smartthings.com/v1/oauth/token with grant_type=refresh_token, authenticating with HTTP Basic client credentials (client_secret_basic — SmartThings rejects client credentials sent in the POST body against this endpoint). Refresh tokens rotate: persist the new refresh token from every response, write the store atomically (temp file + rename), and after any re-authorization force one live refresh cycle and confirm it persists before calling the s

Полный SKILL.md на GitHub

Установить smartthings в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл smartthings?

Read status and drive Samsung SmartThings devices — locations, rooms, modes, scenes, health, history, virtual switches — with confirmation-gated actuation. Trigger phrases: smartthings, samsung smart home, unlock the door, smartthings thermostat.

Как установить скилл smartthings?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл smartthings запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить smartthings с