Sending mail at startup for a new user

hello, i am a new user so, sorry for disturbing the forum.
I try to send a mail at the startup of hass.
I already configured the configuration part, but now, I think I have problem with the automation part.
Here is the automation that I copied from other web site.

t- id: "Hass Startup Notification"
  alias: 'Hass Startup Notification'
  trigger:
    - platform: homeassistant
      event: homeassistant.restart
  action:
    service: notify.email
    data:
      title: "Warning"
      message: "Hass restarted"ype or paste code here

is that something wrong ?
The error message is:
"
Invalid config for [automation]: not a valid value for dictionary value @ data[‘trigger’][0][‘event’]. Got None. (See /config/configuration.yaml, line 13). Please check the docs at https://home-assistant.io/components/automation/
"

The line 13 of the config file is just the link for the automation file.

Is that possible for somebody to explain me the problem ?
Many thanks in advance.
Best regards
Thierry

No need to apologize. That’s what the forum is for. :slight_smile:

See the documentation, especially for the homeassistant trigger:

thanks a lot !

Thierry

1 Like