Notify config for SMTP fails to create service if I include password

When I add the following config to my configuration.yaml file and reboot HA the service is not found in the Developer Tools Services list. I performed a lot of trial and error tweaks to the config and narrowed the problem down to the password. If I remove the password config completely the service is created. Add it back in and the service fails to build. All I’m trying to do at this point is just create the service, not call it, but the password entry messes up the service build. What is the trick to configuring the password?

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

I tried using the secrets.yaml file to hold the notify secrets, replacing the code above with the code below, but that didn’t fix the problem.

    username: !secret gmail_user
    password: !secret gmail_pw

SOLVED:
Apparently Home Assistant verifies the gmail account before building the notify service. And to use gmail you need to setup an app password. Once I did that and updated the password in my secrets.yaml file the notify service was built.
Thanks to all … oh wait, I guess it was just me. :slight_smile: