ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Home Assistant - Gmail Notifications (How-To)

Home Assistant

Gmail Notifications

Gmail

Notifications

Google Mail Notifications

Google Mail

How-To

Tutorial

diy

SMTP

Smart Home

Home Automation

IoT

sensor

automation

Internet of things

Peyanski

Kiril Peyanski

Автор: KPeyanski

Загружено: 2019-11-12

Просмотров: 15803

Описание: If you want to enable Gmail notifications in your #HomeAssistant this video is for you.

By the end of this How-To you will able to receive #Gmail #notifications from Home Assistant when there is some state change in your Smart Home.

The described method can be used for any SMTP (Simple Mail Transfer Protocol) enabled mail provider out there with some minor modifications of the server hostname and eventually the port.

In this video I will also show you how to create an automation that will monitor for state changes of the Presence Sensor and when that happens a Gmail notification will be created

To complete this tutorial you will need:
Working Home Assistant!
To Subscribe to my channel 🙂
If you don’t have Home Assistant yet you can watch my video – here https://peyanski.com/home-assistant-i...

Of course you can search for “SMTP” in the integration section in home-assistant.io or you can directly hit the following link – https://www.home-assistant.io/integra...

Setup
Watch the video or follow these steps:

1. Go to your Google Account.
2. On the left navigation panel, choose Security.
3. On the “Signing in to Google” panel, choose App Passwords. If you don’t see this option:
2-Step Verification is not set up for your account.
2-Step Verification is set up for security keys only.
Your account is through work, school, or other organization.
You’ve turned on Advanced Protection for your account.
4. At the bottom, choose Select app and choose the app you’re using. For example: Mail
5. Choose Select device and choose the device you’re using. For example: Mac
6. Choose Generate.
7. Follow the instructions to enter the App Password. The App Password is the 16-character code in the yellow bar on your device.
8. Copy the App Password and store it somewhere safe. We will need it for the configuration.yaml file in Home Assistant
9. Click Done.
10. Add the following sample configuration in your Configuration.yaml file and customize it for your needs:
Example configuration.yaml entry
notify:
name: gmail
platform: smtp
server: smtp.gmail.com
port: 587
timeout: 15
sender: [email protected]
encryption: starttls
username: [email protected]
password: APP_Password_From_Point_7_Above
recipient:
[email protected]
[email protected]
sender_name: My Home Assistant

11. You can add the following automation in the automation.yaml file of Home Assistant if you want to test the Gmail Notifications. Of course you can customize it to suit your needs:
Example automation.yaml entry
id: '123'
alias: I'm home gmail
description: ''
trigger:
entity_id: person.kiril
from: away
platform: state
to: home
condition: []
action:
data:
message: find it on peyanski.com/newsletter
title: Subscribe to my newsletter
service: notify.gmail

12. Restart your Home-Assistant to activate your new configurations.
13. To test your configuration – go to States tab on Developer Tools. Then simulate the needed state changes of the sensor to trigger the automation. Just as I’m showing in the video you have to change the state of presence sensor “person.kiril” from “away” to “home”
14. Check your Gmail account for new notification

Of course you can use the newly configured service notify.gmail in your Home Assistant for everything you want and not only for presence detection notifications.

Support my blog
Above all – any sort of engagement on my YouTube channel or/and my website – peyanski.com, does really help out a lot with the YouTube and Google algorithm, so make sure you hit the Subscribe, Like and Bell buttons If you enjoy this post & video.

Also feel free to add me on Twitter by searching for KPeyanski username. I post there pretty much daily.

I really hope that you manage to follow the steps in this video till the end and you have working Gmail notifications in your Home Assistant at the moment.

Don’t forget to subscribe to my newsletter here – https://peyanski.com/newsletter/

Stay safe and see you next time.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Home Assistant - Gmail Notifications (How-To)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]