How to setup SMS alerts in Home Assistant using Gmail

preview_player
Показать описание
This video is a quick tutorial on how to setup SMS alerts in Home Assistant using Gmail.

For starters, you have to create a free gmail account...

Once you have done that, all you need to do is go to

and hit the toggle to Allow less secure apps.....

notify:
- platform: smtp
name: alert_test
port: 587
sender: (WHAT WILL SHOW FROM WHEN YOU GET AN ALERT)
starttls: 1
username: (USERNAME OF GMAIL ACCOUNT)
password: (PASSWORD OF GMAIL ACCOUNT)
recipient: (ADDRESS OF NUMBER YOU WANT TO SEND TO)

For this tutorial, we setup a script to send out a test notification with...

script:
test_notification:
alias: Test Notification
sequence:
data:
message: 'This is a test notification!'

Once all that is done, restart home assistant for the changes to take....

You should be good to go, you can use that notify component to send allerts to your phone.

If you like the video, please subscribe to my channel. If you have any questions, hit me up in the comments below. Also, if there are any videos you would like me to put out here, let me know as well.
Рекомендации по теме
Комментарии
Автор

Thanks for this guide. It is probably worth pointing out to potential watchers that this approach assumes your cellular provider offers an email to SMS gateway to generate the SMS.

johnwinterton
Автор

I bet this guy got kicked out of the house for spending too much time on automation, thus now remotely configuring in the car ;)

kjelltp
Автор

I feel like this channel should be called Burns Automobile Automation, lol

jdlemme
Автор

Could you post an example of using this notification with the mqtt cover.garage door opening and closing.

welkinblades
Автор

Good video. There is no need for another Gmail account and running it in less secure mode. I have 2-factor authentication enabled on Gmail and can get an application specific password to get this working on HA.

txcas
Автор

Does the edit of the notify.yaml go in the one located in the config directory? I have edited that one with my info but the service is not coming up in HA once I reboot. Can you please assist?

dahill
Автор

How can I do to connect a SIM to Home Assistant to use it with the alarm and other services in case my line shutdown? Thank u!

paytufo
Автор

Is there a way for it to send the sms message to multiple phones?

johnsmd
Автор

When I copy and paste your script, I get the following error:
Error loading /config/configuration.yaml: mapping values are not allowed here
in "/config/scripts.yaml", line 3, column 13

markroles
Автор

Great guide, but you should consider taking it down, since less-secure-apps is no longer available.

qwerughweiugrwiehrg
join shbcf.ru