Яндекс Умный Дом plugin for Music Assistant — управление MA-плеерами через Smart Home API и Алису
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗📖 Documentation / Документация · 🔄 Changelog / Журнал · 🐛 Issues / Проблемы · 💬 Discussions / Обсуждения
Related providers: Yandex Alice · Yandex Station · Yandex Music
Expose Music Assistant players to Yandex Alice via the Yandex Smart Home API.
«Алиса, включи музыку на Music Assistant»
This plugin bridges Music Assistant and the Yandex Smart Home ecosystem. It registers MA players as smart home devices (type media_device.receiver), enabling voice control through Yandex Alice.
| Voice command | Action |
|---|---|
| «Алиса, включи музыку на <имя>» | Play / resume current queue |
| «Алиса, выключи <имя>» | Stop playback |
| «Алиса, сделай громче на <имя>» | Volume up (+10) |
| «Алиса, сделай тише на <имя>» | Volume down (-10) |
| «Алиса, поставь громкость 50 на <имя>» | Set volume to 50% |
| «Алиса, пауза на <имя>» | Pause |
| «Алиса, дальше на <имя>» | Next track |
| «Алиса, назад на <имя>» | Previous track |
Alice voice command
│
▼
Yandex Cloud
│
▼ (Smart Home API callback)
┌───────────────────┐
│ This plugin │──────► MA Player commands
│ (PluginProvider) │ (play/pause/stop/vol/next/prev/source)
│ │
│ Cloud relay │◄────── MA Player state events
│ (yaha-cloud.ru) │──────► Yandex state reports
└───────────────────┘
| Yandex Capability | MA Player Action | Notes |
|---|---|---|
on_off | play() / stop() | "включи" resumes queue, "выключи" stops |
range(volume) | volume_set() | Absolute and relative (±) |
toggle(mute) | volume_mute() | Only if player supports VOLUME_MUTE |
toggle(pause) | play() / pause() | |
range(channel) | next_track() / previous_track() | Relative only: +1=next, -1=prev |
mode(input_source) | select_source() | Maps source_list by index (max 10) |
Note: Yandex Smart Home API does not support
play_mediafor third-party devices. "Включи музыку" triggers play/resume on the current MA queue, not a specific track.
This provider is under active development.
provider/ folder to your MA custom providers directory# Clone
git clone https://github.com/trudenboy/ma-provider-yandex-smarthome.git
cd ma-provider-yandex-smarthome
# Dev environment with Docker (recommended)
docker compose -f docker-compose.dev.yml up
# Or manual setup
pip install -e ".[test]"
pytest
| Parameter | Description |
|---|---|
| Instance Name | How this MA instance appears in Yandex Smart Home. Alice uses this name. |
| Exposed Players | Select which MA players to expose to Alice. Empty = all players. |
| Exposed Playlists | Select up to 10 library playlists to expose as input-source slots. |
Connection mode and credentials are collected by the setup wizard. Reconfigure the provider to run that wizard again; the regular settings page only contains playback options.
The wizard persists each provider's setup credentials separately from its normal playback options. For skill provisioning, you can use this provider's own Yandex account or borrow the authenticated account from a configured Yandex Music provider.
The wizard registers the public relay slot, displays a one-time code, and waits while you enter it in the Yandex app.
MIT — see LICENSE.