You can trigger Home Assistant automations based on actions performed by a Yandex Station by creating a Scenario in the Yandex IoT interface.
Setup Steps:
- Create a new Scenario in Yandex.
- Set the If condition to "Phrase".
- Set the Then action to "Any smart device".
- Choose an action like "Execute command", "Read text aloud", or "Play sound".
Silent Execution Tip: To trigger an automation without the speaker making noise, set the command to ничего не делай (do nothing).
Events in Home Assistant:
When a scenario runs, Home Assistant receives one of two events:
yandex_speaker: Triggered ONLY by "Execute command" actions. Note: This may not trigger if YandexGPT 2 beta is enabled.yandex_scenario: Triggered by almost any action in the "Then" section.
Note: You cannot see the phrase the user said; you can only see the command/phrase the speaker was instructed to execute.
Debugging: To inspect these events, go to Home Assistant Developer Tools > Events, subscribe to yandex_speaker (or yandex_scenario), and listen for incoming data.
# Example yandex_speaker event data
instance: text_action
value: ничего не делай
entity_id: media_player.station_mini
name: Яндекс Мини
# Example yandex_scenario event data
instance: sound_play
value:
sound: boot-1
sound_name: Загрузка (8 бит)
entity_id: media_player.station_mini
name: Яндекс Мини
scenario_name: Тест