Custom email notification not found

I am trying to install/configure email notification using my email server. I have added the SMTP integration. I have configured the notify in configuration.yaml as follows:

notify:

I am getting the following error when I test using Developer Tools

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:134
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:03:34 PM (1 occurrences)
Last logged: 12:03:34 PM

[140275414311552] Error handling message: Unable to find service notify.kasdivi

I cannot understand what the websockets as to do with this

Is the format correct?

Here is mine.

  - name: "email"
    platform: smtp
    server: !secret email_Server
    port: 587
    encryption: starttls
    username: !secret email_UserName
    password: !secret email_UserPassword
    sender: !secret email_UserName
    timeout: 20
    recipient:
      - !secret email_UserName
    sender_name: "Home Assistant"

I dont see any significant difference except you are using secret.yaml and I aded debug

Try pasting your code using the ‘Preformatted text’ function to preserve the formatting.

EDIT: I’ll assume you’ve restarted HA also

I did the check code and restarted HA
here is the repaste

,

notify:
  - name: "kasdivi"
    platform: smtp
    server: "mail.kasdivi.com"
    port: 587
    timeout: 15
    sender: "[email protected]"
    encryption: starttls
    username: "[email protected]"
    password: ""
    recipient:
      - "[email protected]"
    sender_name: "seashore"
    debug: true

Do you have a Google account you can try? I have yet to try Google with HA, so I’m assuming it will work. :grinning:

1 Like

welll. changed to this

notify:
  - name: "gmail"
    platform: smtp
    server: "smtp.gmail.com"
    port: 587
    timeout: 15
    sender: "[email protected]"
    encryption: starttls
    username: "[email protected]"
    password: "password"
    recipient:
      - "[email protected]"
    sender_name: "Security"

No errors in logs. BUT also no email was sent…hmmmm

Ok no email goes through gmail or my custom email any where but the problem with my earlier custom was apparently the

encryption: starttls

Guess I have to pull the string on that… Thanks!!

Glad you figured it out.

know where the problem is is one thing …getting it to work…well.

If of any value trying to do this… ServiceXp hit upon the basic cause… if there is ANY issue with the code for the custom email information, then you get the “service not found”. In the end it was a hiccup on my mail server NOT the actual configuration on HA. Only a couple of days to figure that. HA also seems to not like port 22. Now working as advertised

1 Like