SMTP errors, unknown action, Python errors. Release 2024.10.4

Fairly new user so please forgive demonstrated ignorance. I have Read The Furnished Manuals, web searches and forums to no avail.

I’m unable to create or use a SMTP notification service.

System: Pi 4, Hassio

Configuration:

notify:

  • name: sonic
    platform: smtp
    port: 587
    encryption: starttls
    timeout: 30
    server: mail.sonic.net
    username: “***xxx
    sender: “***xxx
    password: “**xxx
    sender_name: “Home Assistant”
    recipient: “***xxx
    debug: true

Automation:

  • alias: “Send Test E-Mail Every Morning”
    triggers:
    • platform: time
      at: “08:00:00”
      actions:
    • action: notify.sonic
      data:
      title: “Good Morning”
      message: “Rise and shine”

Error when invoked:

The automation “Send Test E-Mail Every Morning” (automation.send_test_e_mail_every_morning) has an unknown action: notify.sonic.

This error prevents the automation from running correctly. Maybe this action is no longer available, or perhaps a typo caused it.

Log:

Logger: homeassistant.components.notify
Source: components/notify/legacy.py:108
integration: Notifications (documentation, issues)
First occurred: 18:30:34 (1 occurrences)
Last logged: 18:30:34

Error setting up platform smtp

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 641, in auth response = encode_base64(initial_response.encode(‘ascii’), eol=‘’) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\u201c’ in position 15: ordinal not in range(128)

I’ve tried just about everything I can think of short of deleting the system and starting over. Suggestions, requests for more info, etc. are welcomed.

Thanks -

Resolved. I may need new glasses… wrong quotation marks on the password line. Fixed and it works.