Hello. As recently as last night, SMTP worked appropriately.
I upgraded to 2024.10 this morning and SMTP no longer seems to work. No other changes were made.
I realize that there are other potential confounders, but it appears, from this perspective, that the upgrade broke SMTP.
Here’s what I get:
The automation “Automation Name” (
automation.automation_name
) has an unknown action:notify.to_gmail
.This error prevents the automation from running correctly. Maybe this action is no longer available, or perhaps a typo caused it.
To fix this error, edit the automation and remove this action.
Select Submit below to confirm you have fixed this automation.
And, from the log:
Logger: homeassistant.components.automation.automation_name
Source: helpers/script.py:2026
integration: Automation (documentation, issues)
First occurred: 16:07:57 (3 occurrences)
Last logged: 16:08:23Automation Name: Error executing script. Service not found for call_service at pos 2: Action notify.to_gmail not found
Logger: homeassistant.components.notify
Source: components/notify/legacy.py:108
integration: Notifications (documentation, issues)
First occurred: 16:07:10 (2 occurrences)
Last logged: 16:07:10
Error setting up platform smtpTraceback (most recent call last):
File “/usr/local/lib/python3.12/smtplib.py”, line 398, in getreply
line = self.file.readline(_MAXLINE + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/socket.py”, line 708, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/ssl.py”, line 1252, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/ssl.py”, line 1104, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed outDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/notify/legacy.py”, line 108, in async_setup_platform
notify_service = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/smtp/notify.py”, line 103, in get_service
if mail_service.connection_is_valid():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/smtp/notify.py”, line 165, in connection_is_valid
server = self.connect()
^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/smtp/notify.py”, line 158, in connect
mail.login(self.username, self.password)
File “/usr/local/lib/python3.12/smtplib.py”, line 739, in login
(code, resp) = self.auth(
^^^^^^^^^^
File “/usr/local/lib/python3.12/smtplib.py”, line 653, in auth
(code, resp) = self.docmd(response)
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/smtplib.py”, line 432, in docmd
return self.getreply()
^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/smtplib.py”, line 401, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed: "
smtplib.SMTPServerDisconnected: Connection unexpectedly closed: The read operation timed out
And, to be complete, from configuration.yaml (again, no changes here):
notify:
- name: “to_gmail”
platform: smtp
sender: [email protected]
recipient: [email protected]
server: smtp-mail.outlook.com
port: 587
username: !secret hotmail_user
password: !secret hotmail_password
encryption: starttls
sender_name: from_name
Is there something that I am overlooking, or is there a conflict with the update? Thank you.