I tried to use smtp with this yaml:
notify:
- name: "gmail_notify"
platform: smtp
server: "smtp.gmail.com"
port: 587
sender: "[email protected] "
encryption: starttls
username: "[email protected] "
password: "ahxpvcooooooo"
sender_name: "Home Assistant"
but when i reload all I can’t see smtp
I also have problems with an automation
alias: alertMeteoriche
description: ""
trigger:
...
action:
- service: notify.gmail_notify
data:
title: "AAA"
message: "TEST"
mode: single
when I execute it I have
Also yams is broken when I come back because notify.gmail_notify disappears
francisp
(Francis)
July 1, 2025, 7:50am
2
If you never had smtp before, a reload won’t load it. A full restart of HA is required.
gmail as smtp will also require ‘app password’, not sure it will work with smtp integration
Already restarted.
I used an app password as described on SMTP - Home Assistant
1 Like
francisp
(Francis)
July 1, 2025, 9:15am
5
What do the logs say ? When I used that smtp construction, there was always an error in the logs shortly after restart.
There is nothing in the log regarding smtp
You’re missing required recipient
thanks, but I removed it removing other infos because I thought it was optional.
Here the complete config:
notify:
- platform: telegram
name: "zxc"
chat_id: 123
- name: "gmail_notify"
platform: smtp
server: "smtp.gmail.com"
port: 587
sender: "[email protected] "
encryption: starttls
username: "[email protected] "
password: "vxzohejlsbpwqqbl"
recipient:
- "[email protected] "
sender_name: "Home Assistant"
config seems fine as service tries to initialize. PLease look for errors like:
2025-07-01 13:28:51.009 ERROR (SyncWorker_4) [homeassistant.components.smtp.notify] Login not possible. Please check your setting and/or your credentials
I generated another app password and rebooted the system again. Now it works and also the bug with the yaml editor disappeared.
Thanks
1 Like