### Start and Continue Dialogue with Timeout Source: https://github.com/alexxit/yandexstation/wiki/YandexDialogs This script demonstrates starting and continuing a dialogue using `wait_for_trigger` with a specified timeout. It handles user responses and conditional actions. ```yaml script: alice_dialog2: sequence: - service: media_player.play_media entity_id: media_player.yandex_station_mini data: media_content_id: Хозяин, уже утро, пора вставать! media_content_type: dialog:умный дом:утро - wait_for_trigger: platform: event event_type: yandex_intent event_data: session: { dialog: утро } timeout: seconds: 15 - choose: - conditions: "{{ wait.trigger.event.data.text in ['хорошо','конечно','уже встаю'] }}" sequence: - event: yandex_intent_response event_data: text: Включить вам чайник? session: { dialog: утро2 } end_session: False - wait_for_trigger: platform: event event_type: yandex_intent event_data: session: { dialog: утро2 } timeout: seconds: 15 - choose: - conditions: "{{ wait.trigger.event.data.text in ['да','конечно','давай'] }}" sequence: - event: yandex_intent_response event_data: text: Запускаю - service: homeassistant.turn_on target: entity_id: switch.kettle default: - event: yandex_intent_response event_data: text: Ну нет, так нет default: - event: yandex_intent_response event_data: tts: Рота, подъем! ``` -------------------------------- ### Start a Dialog with Yandex Station Source: https://github.com/alexxit/yandexstation/blob/master/README.md Initiate a dialog with the user, capture their response, and perform actions based on it. Specify your dialog name and a tag for response identification in `media_content_type`. ```yaml script: yandex_dialog: sequence: - service: media_player.play_media entity_id: media_player.yandex_station_mini data: media_content_id: Хозяин, уже утро, пора вставать! media_content_type: dialog:умный дом:утро ``` -------------------------------- ### Configure Yandex Station Intents Source: https://github.com/alexxit/yandexstation/wiki/YandexIntents Define phrases your Yandex stations should respond to and their corresponding actions. Leave the action empty if no response is needed. This configuration is part of the Home Assistant setup for Yandex integration. ```yaml yandex_station: intents: Покажи сообщение: ага Какая температура в комнате: Какая влажность в комнате: ``` -------------------------------- ### Yandex TTS Script Example Source: https://github.com/alexxit/yandexstation/blob/master/README.md This script uses the `media_player.play_media` service to send text to a Yandex.Station for TTS playback. It supports local mode if the speaker is compatible, otherwise it falls back to cloud mode with a 100-character limit. Ensure the `entity_id` matches your Yandex.Station device. ```yaml script: yandex_tts1: sequence: - service: media_player.play_media entity_id: media_player.yandex_station # замените на вашу колонку data: media_content_id: 'Температура в комнате {{ states("sensor.temperature_hall")|round }} градуса' media_content_type: text ``` -------------------------------- ### Change Alice Settings via Home Assistant Script Source: https://github.com/alexxit/yandexstation/blob/master/README.md Use a Home Assistant script to modify Alice's settings. This example demonstrates how to change the 'verbose' setting to 'no'. Ensure the `entity_id` is replaced with your actual Yandex speaker entity. ```yaml script: change_settings: alias: Изменение настроек Алисы sequence: - service: media_player.play_media data: entity_id: media_player.yandex_station # замените на любую вашу колонку media_content_id: 'без лишних слов: да' # пробел после двоеточия media_content_type: settings ``` -------------------------------- ### Home Assistant Automation for Yandex Station Voice Commands Source: https://github.com/alexxit/yandexstation/wiki/VoiceSensor This automation triggers when a specific voice command is detected by the Yandex Station. It then turns on a helper input boolean, waits for a specified duration, plays media content identified by the scenario name, waits again, and finally turns off the input boolean. Ensure the entity IDs and names match your setup. ```yaml alias: Зал Голос # поменяйте на своё имя trigger: - platform: event event_type: yandex_speaker event_data: entity_id: media_player.yandex_station_mini # поменяйте на свою колонку из пункта 1 value: ничего не делай # поменяйте на свою фразу из пункта 1 condition: [] action: - service: input_boolean.turn_on target: entity_id: input_boolean.zal_golos # поменяйте на свой выключатель из пункта 2 - delay: hours: 0 minutes: 0 seconds: 30 milliseconds: 0 - service: media_player.play_media data: media_content_id: Зал Голос # поменяйте на свой сценарий из пункта 1 media_content_type: update_scenario target: entity_id: media_player.yandex_station_mini # поменяйте на любую свою колонку - delay: hours: 0 minutes: 1 seconds: 30 milliseconds: 0 - service: input_boolean.turn_off target: entity_id: input_boolean.zal_golos # поменяйте на свой выключатель из пункта 2 mode: restart # важно, иначе работать не будет ``` -------------------------------- ### Telegram Bot Integration for Yandex Station Source: https://github.com/alexxit/yandexstation/blob/master/README.md Configure a Telegram bot to interact with your Yandex Station for local control. Ensure your bot API key and user IDs are correctly set. This setup allows text-based communication with Alice through Telegram. ```yaml telegram_bot: - platform: polling api_key: TELEGRAM_BOT_API_KEY # создайте своего Телеграм бота allowed_chat_ids: - TELEGRAM_USER1_ID # укажите ID своего аккаунта - TELEGRAM_USER2_ID # при желании, поддерживается несколько аккаунтов automation: - trigger: platform: event event_type: telegram_text action: - service: conversation.process data: agent_id: conversation.yandex_station_mini # замените на вашу станцию text: "{{ trigger.event.data.text }}" conversation_id: "{{ trigger.event.data.chat_id }}" response_variable: response - service: telegram_bot.send_message data: target: "{{ trigger.event.data.chat_id }}" message: "{{ response.response.speech.plain.speech }}" ``` -------------------------------- ### Send Command and Get Response via yandex_station.send_command Source: https://github.com/alexxit/yandexstation/blob/master/README.md This script sends a text command to the Yandex Station and stores the response in a variable. It's useful for retrieving specific information like weather or time. The response can then be used in subsequent actions, such as displaying a persistent notification. ```yaml script: example1: sequence: - action: yandex_station.send_command data: entity_id: media_player.yandex_station text: какая погода? response_variable: response - action: notify.persistent_notification data: message: "{{ response }}" ``` -------------------------------- ### Turn On TV Command Source: https://github.com/alexxit/yandexstation/wiki/RemoteSendCommand This script turns on the TV by sending a sequence of commands to the Yandex Station. Replace 'remote.yandex_station_remote' with your device's entity ID. Multiple commands can be sent in sequence, with an optional 'delay_secs' between them. ```yaml script: turn_on: alias: Включи телевизор sequence: - service: remote.send_command entity_id: remote.yandex_station_remote # поменяйте на ваше устройство data: command: [Включи, Смени вход, Ниже, Ниже, ОК] # можно несколько кнопок delay_secs: 0.4 # (опционально) пауза между повторами в секундах ``` -------------------------------- ### Synchronize Shopping List with Yandex Station Source: https://github.com/alexxit/yandexstation/blob/master/README.md Set up a script to synchronize your Home Assistant shopping list with your Yandex Station. This allows for two-way synchronization, enabling updates from both Home Assistant and voice commands on the station. Replace 'media_player.yandex_station_mini' with your actual station's entity ID. ```yaml script: update_shopping_list: alias: Обновить список покупок sequence: - service: media_player.play_media entity_id: media_player.yandex_station_mini # замените на вашу колонку data: media_content_id: update media_content_type: shopping_list ``` -------------------------------- ### TTS with Sound Library Source: https://github.com/alexxit/yandexstation/blob/master/README.md Play sounds from the Alice sounds library. Use the correct audio file name. ```yaml media_content_id: У вас получилось! ``` -------------------------------- ### Include Yandex Smart Home Devices in Home Assistant Source: https://github.com/alexxit/yandexstation/blob/master/README.md Configure which Yandex smart home devices to include in Home Assistant. Supports various device types and can optionally create sensors or controls for specific properties and capabilities. Devices can be included by name, room, type, or ID. ```yaml yandex_station: include: - Кондиционер # добавить ВСЕ устройства с этим именем - name: Очиститель Xiaomi properties: [ "temperature", "humidity", "pm2.5_density" ] # опционально создать сенсоры - name: Чайник Polaris capabilities: [ "mute", "keep_warm" ] # опционально создать контролы - name: Увлажнитель Polaris capabilities: [ "mute", "controls_locked", "ionization", "backlight" ] # опционально создать контролы properties: [ "temperature","humidity" ] # опционально создать сенсоры - name: Кондиционер room_name: Зал # опционально указать комнату capabilities: [ "temperature", "fan_speed", "thermostat" ] # опционально создать контролы current_temperature: "{{ states('sensor.temperature') }}" # опционально указать сенсор температуры - name: Увлажнитель current_humidity: "{{ states('sensor.humidity') }}" # опционально указать сенсор влажности - room_name: Ванная # добавить ВСЕ устройства из этой комнаты - type: devices.types.sensor # добавить ВСЕ устройства такого типа - id: 96581cf1-dad4-4329-bbe9-0c843128f60a # добавить устройство по ID ``` -------------------------------- ### Animate LEDs on Yandex Station Mini 2 Source: https://github.com/alexxit/yandexstation/blob/master/README.md Define custom LED animations for Yandex Station Mini 2 using a specific YAML format. The `media_content_id` contains hexadecimal values representing LED brightness and frame delay. The first byte is always '00', and the last two bytes define the frame delay in milliseconds (e.g., '03E8' for 1000ms). ```yaml action: media_player.play_media data: media_content_id: 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 03 E8 media_content_type: draw_animation target: entity_id: media_player.yandex_station ``` -------------------------------- ### Enable Yandex Station Debug Logging Source: https://github.com/alexxit/yandexstation/blob/master/README.md Configure Home Assistant logger to enable debug logs for the Yandex Station integration. This is useful for troubleshooting. ```yaml logger: default: info logs: custom_components.yandex_station: debug ``` -------------------------------- ### Set Up Garage Door Alert with Yandex Station Notification Source: https://github.com/alexxit/yandexstation/blob/master/README.md Configure an alert for a garage door status, using a Yandex Station notification to inform the user. The alert will repeat at a set interval until acknowledged or the condition is resolved. ```yaml input_boolean: # просто для примера garage_door: name: Дверь гаража alert: garage_door: name: Гараж открыт done_message: Гараж закрыт entity_id: input_boolean.garage_door state: "on" # опционально, потому что "on" это значение по умолчанию repeat: 5 # как часто повторять, в минутах can_acknowledge: true # разрешить выключить уведомления вручную skip_first: true # пропустить первое (мгновенное) уведомление notifiers: - alice_alert # название, которые указали выше ``` -------------------------------- ### Configure Yandex Station HTTP Proxy Source: https://github.com/alexxit/yandexstation/blob/master/README.md Set up an HTTP proxy for the Yandex Station integration if required by your network configuration. Ensure the proxy URL is correctly formatted. ```yaml yandex_station: proxy: http://username:password@123.123.123.123:3128 ``` -------------------------------- ### Play Album on Yandex Station (Local Mode) Source: https://github.com/alexxit/yandexstation/blob/master/README.md This script plays a specific album from Yandex Music on a Yandex Station. It is intended for use exclusively in local mode. ```yaml script: yandex_play_album: alias: Включить Би-2 на Станции sequence: - service: media_player.play_media entity_id: media_player.yandex_station data: media_content_id: 60062 media_content_type: album ``` -------------------------------- ### Execute Command on Yandex Station Source: https://github.com/alexxit/yandexstation/blob/master/README.md Send a command to the Yandex Station. This works in both local and cloud modes. ```yaml script: yandex_command: alias: Выполнить команду sequence: - service: media_player.play_media entity_id: media_player.yandex_station # замените на вашу колонку data: media_content_id: Включи мою любимую музыку вперемешку media_content_type: command ``` -------------------------------- ### Convert Animation to GIF with FFmpeg Source: https://github.com/alexxit/yandexstation/blob/master/README.md Use this FFmpeg command to convert video files to a black and white, 25x16 pixel GIF suitable for Yandex Station Max. Ensure GIF optimization options like offsetting and transdiff are disabled. ```bash ffmpeg -i input.mp4 -vf "format=gray,scale=25:16:force_original_aspect_ratio=1,pad=25:16:(ow-iw)/2:(oh-ih)/2,setsar=1" -y -gifflags -offsetting-transdiff output.gif ``` -------------------------------- ### Configure Yandex Station Media Players Source: https://github.com/alexxit/yandexstation/blob/master/README.md Manually specify media players for music streaming. Options include disabling volume sync or using Jinja2 templates for custom volume mapping. 'media_content_type: url' is crucial for SamsungTV integration. ```yaml yandex_station: media_players: - entity_id: media_player.yas_306 name: Yamaha - entity_id: media_player.mpd name: MPD speaker_id: [media_player.yandex_station] # опциональная привязка к конкретным колонкам Яндекса - entity_id: media_player.yas_306 name: Yamaha (no sync) sync_volume: False # опциональное отключение синхронизации громкости звука - entity_id: media_player.yas_306 name: Yamaha (no sync) sync_volume: "{{ volume_level / 2 }}" # использование Jinja2 для синхронизации громкости - entity_id: media_player.samsung name: SamsungTV media_content_type: url # важно для интеграции SamsungTV из HACS - entity_id: edia_player.nest_hub name: Chromecast quality: lossless # варианты качества - lossless / nq / lq codecs: flac-mp4,aac-mp4,mp3 # поддерживаемые кодеки - flac,aac,mp3,flac-mp4,aac-mp4 ``` -------------------------------- ### TTS with Custom Audio Upload Source: https://github.com/alexxit/yandexstation/blob/master/README.md Play custom uploaded audio files. Ensure the audio file is uploaded and the correct path is provided. Files can be up to 120 seconds. ```yaml media_content_id: ``` -------------------------------- ### Set Volume on Multiple Yandex Stations Source: https://github.com/alexxit/yandexstation/blob/master/README.md Use this script to set the volume level for multiple Yandex Stations simultaneously. Works in both local and cloud modes. ```yaml script: yandex_volume_set: alias: Меняем громкость нескольких станций sequence: - service: media_player.volume_set data: entity_id: - media_player.yandex_station_12345678901234567890 - media_player.yandex_station_98765432109876543210 volume_level: 0.5 ``` -------------------------------- ### Play Media by URL Source: https://github.com/alexxit/yandexstation/blob/master/README.md This script plays media from a given URL on your Yandex Station. It supports various Yandex Music links and other services like YouTube and Kinopoisk. Ensure the entity_id is set to your specific Yandex Station. ```yaml script: yandex_play_url: alias: Проигрывание медиа по ссылке sequence: - service: media_player.play_media entity_id: media_player.yandex_station # замените на вашу колонку data: media_content_id: https://music.yandex.ru/album/2150009/track/19174962 media_content_type: xxx # тип не важен, но должен быть! ``` -------------------------------- ### Configure Yandex Station HDMI Sound Output Source: https://github.com/alexxit/yandexstation/blob/master/README.md Use this script to switch the audio output of your Yandex Station to HDMI. This is only applicable to stations with an HDMI port and is intended for TV audio output. ```yaml script: yandex_hdmi_sound: alias: Звук Станции на HDMI sequence: - service: media_player.select_source entity_id: media_player.yandex_station # поменяйте на вашу станцию data: source: HDMI ``` -------------------------------- ### Change Alice's Language in Home Assistant Source: https://github.com/alexxit/yandexstation/blob/master/README.md Switch the active language for your Yandex speaker using the `media_player.play_media` service. Replace `media_player.hall_speaker` with your speaker's entity ID and choose the desired locale from the provided options. ```yaml action: media_player.play_media target: entity_id: media_player.hall_speaker # замените на вашу колонку data: media_content_type: locale media_content_id: ru-RU # ru-RU en-US ar-SA kk-KZ tr-TR ``` -------------------------------- ### Yandex Station Dialog Automation Source: https://github.com/alexxit/yandexstation/wiki/YandexDialogs This automation defines a script to initiate a dialog with the Yandex Station and subsequent automations to handle user responses and continue the conversation. Ensure your Yandex Station entity ID is correctly specified. The dialog tag in `media_content_type` must match the `session.dialog` in the trigger. ```yaml script: yandex_dialog1: sequence: - service: media_player.play_media entity_id: media_player.yandex_station_mini # поменяйте на вашу колонку data: media_content_id: Хозяин, уже утро, пора вставать! media_content_type: dialog:умный дом:утро # имя диалога и "тег" диалога automation: - trigger: platform: event event_type: yandex_intent event_data: session: { dialog: утро } # тот самый тег в media_content_type action: choose: # проверяем варианты ответов, таких проверок может быть несколько - conditions: "{{ trigger.event.data.text in ['хорошо','конечно','уже встаю'] }}" sequence: - event: yandex_intent_response event_data: text: Включить вам чайник? # ответ пользователю (text без спецэффектов) session: { dialog: утро2 } # новый "тег" диалога end_session: False # НЕ заканчиваем диалог default: # если все прошлые проверки ответов НЕ выполнись - event: yandex_intent_response event_data: tts: Рота, подъем! # tts - поддерживает спецэффекты - trigger: platform: event event_type: yandex_intent event_data: session: { dialog: утро2 } # новый тег для продолжения разговора action: choose: - conditions: "{{ trigger.event.data.text in ['да','конечно','давай'] }}" sequence: - event: yandex_intent_response event_data: text: Запускаю # ответ пользователю - service: homeassistant.turn_on # и выполнение любого действия в ХА target: entity_id: switch.kettle default: # если все прошлые проверки ответов НЕ выполнись - event: yandex_intent_response event_data: text: Ну нет, так нет ``` -------------------------------- ### Configure Yandex Station Notifications Source: https://github.com/alexxit/yandexstation/blob/master/README.md Set up custom notifications for Yandex Stations. Define a name, specify the target speaker(s), and optionally use templates for titles and messages. Notifications can be integrated with alerts. ```yaml notify: - name: alice_alert # любое название platform: yandex_station data: entity_id: media_player.yandex_station_mini # замените на вашу колонку media_content_id: >- {% if title is defined %}{{ title }} sil <[200]>{% endif %}{{ message }} media_content_type: dialog ``` -------------------------------- ### Configure Static IP for Yandex Station Source: https://github.com/alexxit/yandexstation/blob/master/README.md Assign a static IP address to your Yandex Station within your router and Home Assistant configuration. This is useful for ensuring reliable local discovery, especially in network configurations like Docker without 'network=host' or VMs with NAT. Replace '12345678901234567890' with your station's device ID and '192.168.1.123' with its assigned IP address. ```yaml yandex_station: devices: 12345678901234567890: # device_id вашей колонки host: 192.168.1.123 name: Яндекс Станция # имя можно задать и тут ``` -------------------------------- ### Enable Karaoke on TV Source: https://github.com/alexxit/yandexstation/blob/master/README.md Use this automation to stream lyrics from your Yandex Station to a TV via Chromecast. Ensure the camera entity and media player are correctly configured. ```yaml alias: Включить караоке на ТВ sequence: - service: media_player.play_media target: entity_id: media_player.mibox data: media_content_id: >- http://192.168.1.123:8123/api/camera_proxy_stream/camera.hall_speaker_lyrics?token={{ state_attr('camera.hall_speaker_lyrics', 'access_token') }} media_content_type: image/jpeg ``` -------------------------------- ### Play GIF Animation on Yandex Station Max Source: https://github.com/alexxit/yandexstation/blob/master/README.md This action is used to play a GIF animation on Yandex Station Max. The process is similar to playing local MP3 files, but uses the 'gif' media content type. Remember to use query parameters in the URL to bypass caching if the GIF file is updated. ```yaml action: media_player.play_media media_content_id: "URL_TO_YOUR_GIF.gif?cache_buster=12345" media_content_type: gif ``` -------------------------------- ### Configure Yandex Station Domain Source: https://github.com/alexxit/yandexstation/blob/master/README.md If Yandex services are blocked in your country, you can specify an alternative domain for the Yandex Station integration. ```yaml yandex_station: domain: yandex.com ``` -------------------------------- ### Control Yandex Station Max Screen Brightness Source: https://github.com/alexxit/yandexstation/blob/master/README.md This script allows you to control the screen brightness of the Yandex Station Max. The `media_content_id` can be set between 0 and 1, or -1 to enable auto mode. ```yaml script: yandex_brightness: sequence: - service: media_player.play_media entity_id: media_player.yandex_station_max data: media_content_id: 0.5 # допустимые значения от 0 до 1, или -1 для включения авто режима media_content_type: brightness ``` -------------------------------- ### Media Browser Configuration for TTS Source: https://github.com/alexxit/yandexstation/blob/master/README.md Configure the media browser for Yandex Station TTS. This allows for different modes like text, command, and dialog with custom templates. ```yaml yandex_station: media_source: - title: Произнеси текст # обязательное поле media_content_type: text # обязательное поле thumbnail: https://brands.home-assistant.io/_/tts/icon.png - title: Выполни команду media_content_type: command thumbnail: https://brands.home-assistant.io/_/automation/icon.png - title: Включи любимое media_content_id: Включи моё любимое вперемешку media_content_type: command - title: Произнеси шепотом template: '{{ message }}' media_content_type: dialog extra: volume_level: 0.2 - title: Статус эквалайзера template: 'Эквалайзер установлен на {{ states("select.yandex_station_equalizer") }}' media_content_type: text ``` -------------------------------- ### TTS with Pause and Sound Effect Source: https://github.com/alexxit/yandexstation/blob/master/README.md Combine a pause (sil <[500]>) with a sound effect for TTS output. This configuration is for local Yandex Station. ```yaml media_content_id: sil <[500]> Объявление погоды на сегодня... ``` -------------------------------- ### Increase Volume Command Source: https://github.com/alexxit/yandexstation/wiki/RemoteSendCommand Use this script to increase the volume of your Yandex Station. Ensure 'remote.yandex_station_remote' is replaced with your device's entity ID. The 'command' should match the button name in the interface. Optional parameters include 'num_repeats' and 'delay_secs'. ```yaml script: volume_up: alias: Сделай громче sequence: - service: remote.send_command entity_id: remote.yandex_station_remote # поменяйте на ваше устройство data: command: Сделай громче # имя кнопки в интерфейсе num_repeats: 5 # (опционально) количество повторов delay_secs: 0.4 # (опционально) пауза между повторами в секундах ``` -------------------------------- ### Create Automation for Yandex Intent Event Source: https://github.com/alexxit/yandexstation/wiki/YandexIntents This automation triggers when a 'yandex_intent' event occurs with specific text. It then creates a persistent notification in Home Assistant. Ensure the 'yandex_intent' event type and 'text' data match your configured intents. ```yaml automation: - trigger: platform: event event_type: yandex_intent event_data: text: Покажи сообщение action: service: persistent_notification.create data: title: Сообщение со станции message: Шеф, станция чего-то хочет ``` -------------------------------- ### Home Assistant Automation for Yandex Commands Source: https://github.com/alexxit/yandexstation/blob/master/README.md This automation triggers when a 'yandex_speaker' event with the value 'ничего не делай' occurs. It then plays a random phrase back through the same Yandex speaker. ```yaml automation: - alias: Расскажи шутку trigger: - platform: event event_type: yandex_speaker event_data: value: ничего не делай action: - service: media_player.play_media target: entity_id: '{{ trigger.event.data.entity_id }}' data: media_content_type: text media_content_id: '{{ ["На связи", "Смольный слушает", "Тут я"]|random }}' mode: single ``` -------------------------------- ### Yandex Speaker Event Data Source: https://github.com/alexxit/yandexstation/blob/master/README.md This event data is triggered by 'Execute command' and may not fire if YandexGPT 2 beta is enabled. It provides details about the command executed by the Yandex speaker. ```yaml instance: text_action value: ничего не делай entity_id: media_player.station_mini name: Яндекс Мини ``` -------------------------------- ### TTS with Pause Source: https://github.com/alexxit/yandexstation/blob/master/README.md Insert a pause in TTS output. The duration is specified in milliseconds. ```yaml media_content_id: смелость sil <[500]> город+а берёт ``` -------------------------------- ### TTS with Specific Voice Source: https://github.com/alexxit/yandexstation/blob/master/README.md Set a specific voice for TTS output. Not all voices are supported, and incorrect selection may cause issues. ```yaml media_content_id: Всем привет. Меня зовут Захар... ``` -------------------------------- ### Local TTS with Special Effects Source: https://github.com/alexxit/yandexstation/blob/master/README.md Utilize Text-to-Speech (TTS) in local mode for Yandex Stations, which continues listening after speaking and supports special effects without character limits. ```yaml script: yandex_tts4: alias: TTS только для локального режима sequence: - service: media_player.play_media entity_id: media_player.yandex_station # замените на вашу колонку data: media_content_id: Объявление погоды на сегодня... media_content_type: dialog ``` -------------------------------- ### Configure Custom TTS Service Name for Yandex Station Source: https://github.com/alexxit/yandexstation/blob/master/README.md Customize the service name used for TTS (Text-to-Speech) with the Yandex Station integration. This is useful if you have multiple TTS services and want to ensure a specific one is used, or if other speakers do not support the default `tts.yandex_station_say`. ```yaml yandex_station: tts_service_name: alice_say ``` -------------------------------- ### Home Assistant Automation for Yandex Station Notifications Source: https://github.com/alexxit/yandexstation/wiki/Broadcast This script triggers a notification on Yandex Stations when a specific voice command is detected. It requires a configured Yandex Dialog and can send messages to multiple Yandex Stations or Google speakers. ```yaml alias: Оповещение description: '' trigger: - platform: event event_type: yandex_speaker event_data: value: Сделай громче на 000 # укажите фразу из сценария Яндекса condition: [] action: - service: media_player.play_media target: entity_id: '{{ trigger.event.data.entity_id }}' data: media_content_type: dialog:умный дом:оповещение # укажите имя вашего Яндекс.Диалога media_content_id: Произнесите фразу - wait_for_trigger: platform: event event_type: yandex_intent event_data: session: dialog: оповещение timeout: '10' continue_on_timeout: false - service: media_player.play_media # колонки Яндекса data: entity_id: media_player.yandex_station # можно указать несколько колонок media_content_type: text media_content_id: '{{ wait.trigger.event.data.text }}' - service: tts.google_translate_say # колонки Google data: entity_id: media_player.lobby message: '{{ wait.trigger.event.data.text }}' mode: single ``` -------------------------------- ### Set Custom TTS Volume (tts.say) Source: https://github.com/alexxit/yandexstation/blob/master/README.md Adjust the volume level for TTS messages spoken by a Yandex Station using the `tts.yandex_station_say` service. The volume returns to its previous level after the message is spoken. ```yaml script: alice_custom_volume1: sequence: - service: tts.yandex_station_say entity_id: media_player.yandex_station # замените на вашу колонку data: message: Внимание! Важное сообщение... options: volume_level: 0.8 ``` -------------------------------- ### TTS with Speech Effects Source: https://github.com/alexxit/yandexstation/blob/master/README.md Use this to apply effects like megaphone or to remove effects. Ensure the effect is properly closed with '-'. ```yaml media_content_id: Ехал Грека через реку видит Грека в реке рак ``` -------------------------------- ### Set Custom TTS Volume (play_media) Source: https://github.com/alexxit/yandexstation/blob/master/README.md Control the volume of TTS messages played through a Yandex Station using the `media_player.play_media` service with the `extra.volume_level` parameter. Supports 'text' and 'dialog' media content types. ```yaml script: alice_custom_volume2: sequence: - service: media_player.play_media entity_id: media_player.yandex_station # замените на вашу колонку data: media_content_id: Внимание! Важное сообщение... media_content_type: text # поддерживается text и dialog extra: volume_level: 0.8 ``` -------------------------------- ### Process Conversation with Conversation Entity Source: https://github.com/alexxit/yandexstation/blob/master/README.md Utilize the conversation entity to process natural language queries and receive structured responses. This method is available in Home Assistant 2024.5+ and requires the conversation agent to be enabled for your Yandex Station. The response is stored in a variable for further use. ```yaml script: example2: sequence: - action: conversation.process data: agent_id: conversation.yandex_station_mini text: какая погода? response_variable: response - action: notify.persistent_notification data: message: "{{ response }}" ``` -------------------------------- ### Advanced TTS with Yandex Dialogs Source: https://github.com/alexxit/yandexstation/blob/master/README.md This script utilizes the Yandex Dialogs component for TTS, supporting special effects and no character limits. The speaker will not listen for user input after TTS playback. ```yaml script: yandex_tts3: sequence: - service: media_player.play_media entity_id: media_player.yandex_station_irbis data: media_content_id: Хозяин, пора бы спать media_content_type: text:умный дом ``` -------------------------------- ### Yandex Scenario Event Data Source: https://github.com/alexxit/yandexstation/blob/master/README.md This event data is triggered by most actions in the 'Then' section of a Yandex scenario. It captures details about the executed scenario. ```yaml instance: sound_play value: sound: boot-1 sound_name: Загрузка (8 бит) entity_id: media_player.station_mini name: Яндекс Мини scenario_name: Тест ``` -------------------------------- ### TTS with Whisper Effect Source: https://github.com/alexxit/yandexstation/blob/master/README.md Enable whisper mode for TTS output. This is useful for specific tones or emphasis. ```yaml media_content_id: Хозяин, уже утро, пора вставать! ``` -------------------------------- ### Disable Yandex Station HTTPS Certificate Verification Source: https://github.com/alexxit/yandexstation/blob/master/README.md Disable HTTPS certificate verification for the Yandex Station integration. Use this option with caution, as it can reduce security. ```yaml yandex_station: ssl: False ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.