Automation no longer works cause of missing smtp notify which still exists

Hello everybody

I have an existing email notification which is no more running. HA informs me that the used notifier in the automation doesn’t exist. That confused me, because it was already working in the past. The configuration.yaml file seems to has no issue. The notifier isn’t visible in the list of services within developer tool. I found that as soon as the line of code for the password is commented out, the service is displayed in the service list within the developer tool after reloading the configuation yaml. For sure, the service is not sending an email as expected. So I am wondering, how this can happen? What is wrong? Target is to send an email within an automation.

notify:
  - name: "EmailNotification"
    platform: smtp
    server: "smtp.gmail.com"
    port: 587
    timeout: 15
    encryption: starttls
    sender_name: "HomeAssistantEmail"
    sender: !secret google_email_addr
    recipient: !secret google_email_addr
    username: !secret google_email_addr
    #password: !secret google_email_pw

I also tried out to use just a test password.

password: test

OR

password: "test"
1 Like

Hi,

I just have the exact same issue. I had a working notification and just changed server and credentials (i changed my provider) and the notifcation is not recognized anymore.

I have a separate “notify.yaml” with two services:

- name: gotify_1
  platform: rest
  resource: https://gotify.***.ddnss.de/message
  method: POST_JSON
  headers: 
    X-Gotify-Key: !secret gotify_key
  message_param_name: message
  title_param_name: title
  data:
    priority: 10
    extras:
      client::display:
        contentType: "text/markdown"

- name: "NOTIFIER_MUELL"
  platform: smtp
  server: "***.netcup.net"
  port: 465
  timeout: 15
  sender: "***.*******@****.de"
  encryption: starttls
  username: "***.*******@****.de"
  password: "************************"
  recipient:
    - "***.**********@****.de"
  sender_name: "Home Assistant"

The “gotify_1” still exists and works but the “notifier_muell” which existed previously is not there anymore:

Any ideas?

I just got this also, for some uggly reason Home Assistant no more likes my notify setup in configure.yaml - it has worked without problems up to yesterday. I have not changed ANYTHING in notify (although I have made some minor adjustments in configure.yaml on a sensor that has NOTHING to do with notify).

I guess Home Assistant has changed something without telling me - I hate that.

This kind of changes when things just are removed are more or less enough for me to dump this shit.

Same problem, started 5 days ago too. I cannot get any emails to work, I haven’t changed anything.
Any ideas??

Same problem here. Automations that were working prior to the last update now fail with this error: " Arrival Notification uses an unknown service. The automation “Arrival Notification” (automation.arrival_notification) has an action that calls an unknown service: notify.smtp_out."

The same error is posting on my Garage Door Opened warning: " The automation “EMail on Garage Door Opened” (automation.email_on_garage_door_opened) has an action that calls an unknown service: notify.smtp_out."

I agree that things that were working fine and “suddenly” breaking on an update is maddening. Anyone have a solution to this yet?

1 Like

+1. Same issue noticed tonight, seems it began on Jan12. Config.yaml has not been changed in that time.


Logger: homeassistant.components.automation.notification_battery_monitor_1
Source: helpers/script.py:1783
Integration: Automation (documentation, issues)
First occurred: January 12, 2024 at 1:46:33 PM (5 occurrences)
Last logged: 10:29:55 PM

Notification - Battery Monitor 1: Error executing script. Service not found for call_service at pos 2: Service notify.gmail_email_martin not found.

-------------------------------------------------------------------
Noticed this log entry right after a HA restart. SMTP is not running if I understand it.

Logger: homeassistant.components.notify
Source: components/notify/legacy.py:103
Integration: Notifications (documentation, issues)
First occurred: 10:39:37 PM (3 occurrences)
Last logged: 10:39:37 PM

Failed to initialize notification service smtp

Same here. From what I can tell, my notify.yaml file is just being ignored. Can’t find anything in the logs with debug logging enabled. No changes to my YAML in ages so it just stopped working at some point.

You guessed it… Me too. Same difficulty.
Trying to create an smtp notifier and, regardless what I do in [configuration.yaml], the service will not appear.
My [configuration.yaml] had no “notify” section and I have no [notify.yaml] so I created the “notify” section in my [configuration.yaml].

HA version info:

Core                         2024.1.5
Supervisor                2023.12.1
Operating System    11.4
Frontend                   20240104.0

Section (I created) in [configuration.yaml]:

notify:
  - name: "email_to_noc_at_kdryden"
    platform: smtp
    server: "***.***.***.***"
    port: 25
    timeout: 15
    sender: "[email protected]"
    starttls: "false"
    username: "xxxxxxxx"
    password: "xxxxxxxxxxxxxxxx"
    recipient: "[email protected]"

Have (re)edited the “notify” section adding and removing quotes and other “adjustments”…

Service for smtp by any name has never appeared.

================================================

Welp, never mind…

Turns out the fault was all mine, of course.

I assumed I required authentication to the mail server machine, that assumption was false.
Error messages were not sufficiently helpful to point to the actual problem.
Based on a post I found elsewhere, removed the UName/PWord and problem solved.
Now sending Emails at will.

It’s very likely related to this:

I’m having the same problem. Followed the instructions from the HA SMTP page and the notify service added to configuration.yaml isn’t recognized, meaning the notify section is just being ignored by HA.

Same problem on 2024.12.3. SMTP notification is configured in configuration.yaml, but is ignored, the notification cannot be selected at relevant places.

same problem here, SMTP no longer working:
Action notify.smtpmail not found