Last active
February 8, 2024 03:42
-
-
Save kai-zer-ru/8594835c2b117540e0dd7e97f095601e to your computer and use it in GitHub Desktop.
Yandex.Station Intents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Спать | |
description: '' | |
trigger: | |
- platform: event | |
event_type: yandex_intent | |
event_data: | |
text: Я спать | |
condition: [] | |
action: | |
- parallel: | |
- service: light.turn_off | |
data: {} | |
target: | |
entity_id: | |
- light.vykliuchatel_v_zale | |
# Тут можно указать много различных объектов освещения для отключения, к примеру | |
- service: water_heater.set_operation_mode | |
# тут я отключаю чайник | |
data: | |
operation_mode: 'off' | |
target: | |
entity_id: water_heater.skykettle_rk_m216s | |
# тут я отключаю телек, если он включен | |
- if: | |
- condition: not | |
conditions: | |
- condition: state | |
entity_id: media_player.yandex_tv_cea24f3ba56911d921f7 | |
state: unavailable | |
then: | |
- service: remote.send_command | |
data: | |
num_repeats: 1 | |
delay_secs: 0.4 | |
hold_secs: 0 | |
command: Выключи | |
target: | |
entity_id: remote.yandex_station_3276fc1019fd47efb086349dee727f7c | |
- service: switch.turn_off | |
data: {} | |
target: | |
entity_id: switch.skykettle_rk_m216s_enable_sync_light | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment