Город МОСКОВСКИЙ
00:07:23

Enviar notificações telegram com Home Assistant | home automation

Аватар
JS Веб-профессионал
Просмотры:
89
Дата загрузки:
03.12.2023 12:49
Длительность:
00:07:23
Категория:
Технологии и интернет

Описание

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"

Рекомендуемые видео