Created
August 20, 2021 05:03
-
-
Save bessarabov/afff0c47df50e9ef1faaf2dbac64595d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Configure a default setup of Home Assistant (frontend, api, etc) | |
default_config: | |
# Text to speech | |
tts: | |
- platform: google_translate | |
group: !include groups.yaml | |
script: !include scripts.yaml | |
scene: !include scenes.yaml | |
telegram_bot: | |
- platform: polling | |
api_key: !secret secret_telegram_token | |
parse_mode: html | |
allowed_chat_ids: | |
- 120351727 | |
- -510886860 | |
notify: | |
- name: bessarabov | |
platform: telegram | |
chat_id: 120351727 | |
- name: telegram_group | |
platform: telegram | |
chat_id: -510886860 | |
automation: | |
- trigger: | |
- platform: event | |
event_type: telegram_command | |
event_data: | |
command: /двор | |
action: | |
- service: system_log.write | |
data: | |
message: "action" | |
- service: notify.bessarabov | |
data: | |
message: "to personal message" | |
- service: notify.telegram_group | |
data: | |
message: "asdf {{ trigger.event.data }}" | |
- service: telegram_bot.send_message | |
data: | |
message: "asdf" | |
target: "{{ trigger.event.data.chat_id }}" | |
- trigger: | |
- platform: event | |
event_type: telegram_command | |
event_data: | |
command: /двор2 | |
action: | |
- service: telegram_bot.send_message | |
data: | |
message: "asdf" | |
target: "{{ trigger.event.data.chat_id }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment