Yandex Smart Home for OpenClaw

Yandex Smart Home CLI for OpenClaw

Python CLI and OpenClaw skill to switch Yandex Smart Home lights and sockets and set brightness, color temperature and color

SkillMedium riskRussian stack

wannawhat/openclaw-yandexiot

Install

git clone https://github.com/wannawhat/openclaw-yandexiot.git
cd openclaw-yandexiot
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

After install create .env with ya_oauth_token. OpenClaw paths are listed in SKILL.md.

This is third-party code. Review the repository files before installing.

What it does

Gives an OpenClaw agent commands for Yandex Smart Home devices: list devices, turn them on or off, set brightness 0-100, color temperature 1500-6500K and HSV color. Every command returns JSON, which is easy for the agent to parse. SKILL.md walks the agent through guiding the user to obtain a Yandex OAuth token.

Who it is for. Owners of Yandex Smart Home devices who run OpenClaw as a home assistant.

Good fit when

  • You want to control lights through OpenClaw by text or voice
  • You want lighting scenes such as evening or work mode
  • You need a JSON interface to Yandex lights and sockets for your own scripts

Not a fit when

  • You need device types beyond lights, strips, garlands and sockets
  • You use Claude Code or Cursor: the instructions assume OpenClaw paths

Example request

Turn on warm light in the bedroom at 30 percent

Limitations

Only lights, ceiling lights, LED strips, garlands and sockets are supported. A Yandex OAuth token is required and stored in a .env file. Commands accept only full device IDs, shortened ones do not work.

How to disable. Delete the skill folder from the OpenClaw workspace and revoke the OAuth token in your Yandex account settings.

Security check

  • Requires a Yandex account OAuth token
  • The agent controls physical devices at home

README in short

The project is a Python CLI for controlling Yandex Smart Home devices from OpenClaw. It needs Python 3.8+ and a Yandex OAuth token. The get_all, on, off and set commands manage state, brightness, temperature and color. OpenClaw integration is described in a separate SKILL.md. MIT license.

SKILL.md

# Yandex Smart Home Skill

Этот скилл позволяет управлять устройствами умного дома Яндекс: лампами и розетками.

## Установка (выполнить один раз)

Требования: **python3**, pip

```bash
# Клонируем в workspace tools
cd /root/.openclaw/workspace/tools
git clone https://github.com/wannawhat/openclaw-yandexiot yandex-home
cd yandex-home

# Создаем venv и ставим зависимости
python3 -m venv venv
venv/bin/pip install requests python-dotenv pydantic
```

### Авторизация

Для работы нужен OAuth токен Яндекса. Веди пользователя по шагам:

1. Попроси перейти по ссылке и создать приложение (выбрать пункт "Для доступа к API или отладки"):
   ```
   https://oauth.yandex.ru/?dialog=create-client-entry
   ```
   После создания попросить сообщить `client_id`.

2. Подставь `client_id` в ссылку и попроси пользователя перейти по ней:
   ```
   https://oauth.yandex.ru/authorize?response_type=token&client_id={client_id}
   ```

3. После авторизации на странице будет написан токен — попроси его скопировать и прислать.

4. Создай файл `.env` в папке проекта:
   ```
   ya_oauth_token=ТОКЕН_СЮДА
   ```

### Проверка установки

```bash
cd /root/.openclaw/workspace/tools/yandex-home
venv/bin/python3 main.py get_all
```

Если вернулся JSON со списком устройств — все готово.

**Важно:** всегда используй полные пути к device_id (не работают сокращенные ID вида `1b82d50d`). Сначала вызывай `get_all`, чтобы получить полные ID.

FAQ

How do I get a token?

Create an app at oauth.yandex.ru for API access or debugging, open the authorize link with your client_id and put the token into .env as ya_oauth_token.

A curated list of Claude skills and plugins, plus Composio's own automation skills for 78 SaaS apps

SkillHigh risk75K

MAX Messenger MCP server

mcp-max-messenger

MCP server for the MAX messenger Bot API: messages, media, chats, members and buttons from an agent

MCP serverMedium riskRussian stack7

Chestnyi Znak MCP server

@woyax/mcp-chestnyi-znak

MCP server for the Chestnyi Znak True API: documents, marking codes, balances and participant checks by INN

MCP serverMedium riskRussian stack3