Skip to main content

Mailconfiguratie

Gemini_Generated_Image_3gi81v3gi81v3gi8.jpegGemini_Generated_Image_3gi81v3gi81v3gi8.jpegZorg dat je weet welke smtp server je gaat gebruiken. Zaken zoals je gebruikersnaam, wachtwoord, serverinstellingen...

Ik raad je aan, indien mogelijk, van een aparte account te gebruiken. Om zo je mailbox credentials apart te houden.

Persoonlijk gebruik ik mailersend, die gekoppeld is met mijn cloudflare configuratie.

 

Config

Voeg volgende toe in configuration.yaml, en herstart vervolgens home assistant.

# eMail notification
notify:
  - name: email
    platform: smtp
    port: 587
    timeout: 15
    encryption: starttls
    verify_ssl: False
    server: "smtp.mailersend.net"
    username: "USERNAME"
    password: "PASSWORD"
    sender_name: "Home Assistant"
    sender: "USER@DOMAIN.BE"
    recipient: "USER@DOMAIN.BE"

Nu kan je een regel toevoegen, met onderstaande config.
Let op de action naam, notify.email. Dit 'email' is de link met de naam uit je configuratie.yaml (hierboven).

description: ""
mode: single
triggers:
  - trigger: time
    at: "18:18:18"
conditions: []
actions:
  - data:
      title: TestTitel
      message: Testboodschap
      target:
        - UW-MAIL
      data:
        html: >
          Extra test html code<br>
    action: notify.email