Skip to content

Instantly share code, notes, and snippets.

@kai-zer-ru
Last active October 9, 2024 04:28
Show Gist options
  • Save kai-zer-ru/68b4579df1e53faa450c4272d2fe4b52 to your computer and use it in GitHub Desktop.
Save kai-zer-ru/68b4579df1e53faa450c4272d2fe4b52 to your computer and use it in GitHub Desktop.
coffee.yaml
coffee:
input_boolean:
make_coffe_morning:
name: Приготовить кофе утром?
icon: mdi:coffee-maker-check
coffee_in_progress:
name: Кофе готовится
icon: mdi:coffee-to-go
script:
make_coffee:
alias: Приготовить кофе
sequence:
- type: turn_on
device_id: 5bd6d1f10ef31909b82eb8069860908f
entity_id: b7713b797f88492b61398a716d537482
domain: switch
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.coffee_in_progress
- action: media_player.play_media
target:
entity_id: media_player.yandex_station_u00320300axc5b
data:
media_content_id: >-
media-source://tts/yandex_station?message=%D0%9A%D0%BE%D1%84%D0%B5+%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%B8%D1%82%D1%81%D1%8F%21+%D0%A1%D0%BE%D0%BE%D0%B1%D1%89%D1%83%2C+%D0%BA%D0%B0%D0%BA+%D1%81%D0%B2%D0%B0%D1%80%D0%B8%D1%82%D1%81%D1%8F%21
media_content_type: text
metadata:
title: Кофе готовится! Сообщу, как сварится!
thumbnail: https://brands.home-assistant.io/_/tts/icon.png
media_class: app
children_media_class: null
navigateIds:
- {}
- media_content_type: text
media_content_id: >-
media-source://tts/yandex_station?message=%D0%9A%D0%BE%D1%84%D0%B5+%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%B8%D1%82%D1%81%D1%8F%21+%D0%9F%D1%80%D0%B8%D1%8F%D1%82%D0%BD%D0%BE%D0%B3%D0%BE+%D0%B0%D0%BF%D0%BF%D0%B5%D1%82%D0%B8%D1%82%D0%B0%21
- media_content_type: text
media_content_id: >-
media-source://tts/yandex_station?message=%D0%9A%D0%BE%D1%84%D0%B5+%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%B8%D1%82%D1%81%D1%8F%21+%D0%A1%D0%BE%D0%BE%D0%B1%D1%89%D1%83%2C+%D0%BA%D0%B0%D0%BA+%D1%81%D0%B2%D0%B0%D1%80%D0%B8%D1%82%D1%81%D1%8F%21
description: ""
icon: mdi:coffee-maker
automation:
- id: Кофе готов
alias: Кофе готов
description: ""
mode: single
triggers:
- type: power
device_id: 5bd6d1f10ef31909b82eb8069860908f
entity_id: b36af7ec6056ece3bcfade18f56fba29
domain: sensor
below: 2
for:
hours: 0
minutes: 0
seconds: 0
trigger: device
conditions: []
actions:
- if:
- condition: state
entity_id: input_boolean.coffee_in_progress
state: "on"
then:
- data: {}
action: input_boolean.turn_off
target:
entity_id: input_boolean.coffee_in_progress
- type: turn_off
device_id: 5bd6d1f10ef31909b82eb8069860908f
entity_id: b7713b797f88492b61398a716d537482
domain: switch
- action: media_player.play_media
target:
entity_id: media_player.yandex_station_u00320300axc5b
data:
media_content_id: >-
media-source://tts/yandex_station?message=%D0%9A%D0%BE%D1%84%D0%B5+%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%21+%D0%9F%D1%80%D0%B8%D1%8F%D1%82%D0%BD%D0%BE%D0%B3%D0%BE+%D0%B0%D0%BF%D0%BF%D0%B5%D1%82%D0%B8%D1%82%D0%B0%21
media_content_type: text
metadata:
title: Кофе готов! Приятного аппетита!
thumbnail: https://brands.home-assistant.io/_/tts/icon.png
media_class: app
children_media_class: null
navigateIds:
- {}
- media_content_type: text
media_content_id: >-
media-source://tts/yandex_station?message=%D0%9A%D0%BE%D1%84%D0%B5+%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%21+%D0%9F%D1%80%D0%B8%D1%8F%D1%82%D0%BD%D0%BE%D0%B3%D0%BE+%D0%B0%D0%BF%D0%BF%D0%B5%D1%82%D0%B8%D1%82%D0%B0%21
- id: Приготовить кофе (Алиса)
alias: Приготовить кофе (Алиса)
description: ""
mode: single
triggers:
- event_type: yandex_intent
event_data:
text: Приготовь кофе
trigger: event
conditions: []
actions:
- action: script.make_coffee
metadata: {}
data: {}
- id: Кофе по утрам
alias: Кофе по утрам
description: ""
mode: single
triggers:
- at: "07:00:00"
trigger: time
conditions:
- condition: state
entity_id: input_boolean.make_coffe_morning
state: "on"
actions:
- action: script.make_coffee
metadata: {}
data: {}
- action: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id: input_boolean.make_coffe_morning
- id: Кофе готовится
alias: Кофе готовится
description: ""
mode: single
triggers:
- type: turned_on
device_id: 5bd6d1f10ef31909b82eb8069860908f
entity_id: b7713b797f88492b61398a716d537482
domain: switch
trigger: device
conditions: []
actions:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.coffee_in_progress
- id: Кофе утром запросить
alias: Кофе утром запросить
description: ""
mode: single
triggers:
- event_type: yandex_intent
event_data:
text: Утром кофе
trigger: event
conditions: []
actions:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.make_coffe_morning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment