Enviar notificações telegram com Home Assistant | home automation
Описание
Neste vídeo demonstro como utilizar o Home assistant com notificações com telegram.
Scripts usados:
##Configurations.yaml
# Telegram Bot
telegram_bot:
- platform: polling
api_key: 1326299266:AAF-D9ioQDNzor5ye_m5mnzX_lg02kIzin4 #!secret telegram_api_token
allowed_chat_ids:
- 986264579 #!secret telegram_chat_id
notify 2:
- name: ha_telegram
platform: telegram
chat_id: 986264579 #!secret telegram_chat_id
##Automation.yaml
- id: 'TELEGRAM: Avisar quando a luz da cozinha for ligada'
alias: Aviso_Sala_Jantar_Ligado
trigger:
platform: state
entity_id: light.sala_de_jantar
to: 'on'
condition: []
action:
service: notify.ha_telegram
data:
title: 'Luzes ligadas'
message: "Atenção! Luz da sala de Jantar está ligada"
Рекомендуемые видео

















![Музыка в машину - Слушать песни без остановки [Vol.44]](/images/video/2025-01-05/04/94/0494edb59a9e97d30f571a9b8344855e.jpg?width=640)

