Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created August 20, 2021 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/afff0c47df50e9ef1faaf2dbac64595d to your computer and use it in GitHub Desktop.
Save bessarabov/afff0c47df50e9ef1faaf2dbac64595d to your computer and use it in GitHub Desktop.
# 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