Send e-mail from Home Assistant

A accepted e-mail server as gmail needs to be used and a user e-mail address and application password must be created.

Add the SMPT integration and configure it with; sender e-mail, sender name, host as smtp.gmail.com, port, connection security, username and application password

And finally add an automation to automations.yaml:

alias: Raspberry Pi SoC Temperature Warning
description: Notification too high SoC temperature
triggers:
  - trigger: numeric_state
    entity_id: sensor.raspi_soc_temperature
    above: 78
    for:
      minutes: 15
conditions: []
actions:
  - action: notify.send_message
    target:
      entity_id: notify.gmail_urs_linurs_org
    data:
      title: ⚠️ Raspberry Pi Temperature high
      message: >
        SoC-Temperature is {{ states('sensor.raspi_soc_temperature')
        }}°C 
mode: single

The id must be unique and sensor.raspi_soc_temperature must be the proper existing entity name


Linurs startpage