Giter Club home page Giter Club logo

Comments (14)

nicx avatar nicx commented on June 25, 2024 1

the issue is not permanent here, too. sometimes it works after a reboot, sometimes not. sometimes the servic crashes even it was running after some hours.
I recognize the crash becuse i get a message that my automation cannot fint the notify service anymore.

in my case i am using a local exim mailserver (as a relay) without authentification. as already said, thos worked for years without any problems. there is no error log or any other log on the exim side. its just the ha smtp integration crashing :(

from core.

home-assistant avatar home-assistant commented on June 25, 2024

smtp documentation
smtp source

from core.

Marcwa19197 avatar Marcwa19197 commented on June 25, 2024

Got the same issue.
SMTP Integration seems to be very unstable. A config-reload brings the service back to action....

Also i guess if the Network / Internet connection is broken for a while, Notify-SMTP-Integration is lost till HA Configuration is reloaded in Developer-Tools.

My Config:

notify:
  - name: "apple_mail_notification_customdomain_tld"
    platform: smtp
    sender: "[email protected]"
    recipient: "[email protected]"
    server: "smtp.mail.me.com"
    port: 587
    timeout: 5
    username: "[email protected]"
    password: 'blahblah-my-app-specifiy-password'
    encryption: "starttls"
    sender_name: "HomeAssistant"
    verify_ssl: false
    debug: true

from core.

Joe4462 avatar Joe4462 commented on June 25, 2024

I have 2 almost identical "Send Mail" services. Since this week(maybe Core 2024.3.3?) only one of them ist working. I experimented a little and found the reason: The not-working Mail has an "Umlaut" "ö" in the Text. Deleted the "ö": SMTP is working, changed it back: not working.
Maybe that helps a little

from core.

Marcwa19197 avatar Marcwa19197 commented on June 25, 2024

Oh okay, but you mean within the config or within for example the message or subject of the mail which should be sent? Im using a HTML-Formatted Mail content...

from core.

Joe4462 avatar Joe4462 commented on June 25, 2024

The Umlaut was in the message.

  • id: '16338861470'
    alias: Mail Garage Offen
    description: ''
    trigger:
    • platform: state
      entity_id:
      • binary_sensor.garagentor_input
        to: 'on'
        from: 'off'
        condition: []
        action:
    • service: notify.garoffen
      data:
      message: Das Garagentor wurde am {{now().strftime("%d.%m.%y um %H:%M:%S")}}
      Uhr geöffnet!
      title: Garage auf:{{now().strftime(" %d.%m. - %H:%M:%S")}}
      mode: single

from core.

Marcwa19197 avatar Marcwa19197 commented on June 25, 2024

Okay, yeah, checked all my Mail Templates but there are no Umlauts used... So really strange.

from core.

jbouwh avatar jbouwh commented on June 25, 2024

Did a test at my production instance running HA OS. The SMTP notification service just works fine for me. What mail provider are you having issues with? If it is a public provider I could may be do a test. No credentials needed.

from core.

Marcwa19197 avatar Marcwa19197 commented on June 25, 2024

The issue is only happening sometimes (on my end).
So i had the issue twice till now: "Service is not available" after a config-reload the automation worked again... im not sure when this is happening.

Im using my iCloud+ Account with Custom-Domain for sending the Mails.

from core.

jbouwh avatar jbouwh commented on June 25, 2024

can you share the host name of the SMTP server you are using, only if it is a public server?

from core.

Marcwa19197 avatar Marcwa19197 commented on June 25, 2024

its not a public one..

notify:
  - name: "apple_mail_notification_customdomain_tld"
    platform: smtp
    sender: "[email protected]"
    recipient: "[email protected]"
    server: "smtp.mail.me.com"
    port: 587
    timeout: 5
    username: "[email protected]"
    password: 'blahblah-my-app-specifiy-password'
    encryption: "starttls"
    sender_name: "HomeAssistant"
    verify_ssl: false
    debug: true

from core.

jbouwh avatar jbouwh commented on June 25, 2024

I think the smtp integration should be moved to use config flow. This enables to make the entry startup more robust. But the logging is not handled in an optimal way either.

from core.

Marcwa19197 avatar Marcwa19197 commented on June 25, 2024

you mean to separate it into another .yaml file?

from core.

jbouwh avatar jbouwh commented on June 25, 2024

No, but use a config entry, it will also allow it to be set up from the ui

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.