Skip to content

Instantly share code, notes, and snippets.

@AlexxIT
Created October 22, 2021 04:01
Show Gist options
  • Save AlexxIT/6eea8d116742772b20adf5f59af784eb to your computer and use it in GitHub Desktop.
Save AlexxIT/6eea8d116742772b20adf5f59af784eb to your computer and use it in GitHub Desktop.
script:
alarm:
sequence:
- service: media_player.play_media
entity_id: media_player.yandex_station_mini # замените на вашу станцию
data_template:
media_content_id: Какие у меня будильники
media_content_type: "question:alarm"
automation:
- trigger:
platform: event
event_type: yandex_station_response
event_data:
request_id: alarm
action:
service: persistent_notification.create
data:
message: "{{ trigger.event.data.text }}"
@StreII
Copy link

StreII commented Oct 27, 2021

а как запустить ? не подскажете?

@AlexxIT
Copy link
Author

AlexxIT commented Oct 27, 2021

Любой созданный скрипт появляется в объектах и запускается из GUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment