Hey you guys!
I’m an IT-gal in training and one of my excersises is to set up the HA and receive e-mail notifications (MS 365) via SMTP.
Now all I get is a (for me) cryptic troubleshoot: “value should be a string @ data[‘target’][0]”
I tried out many things but it still won’t work. ChatGPT doesn’t know either.
So maybe you have some input for me?
This is my yaml.config:
id: '1701953215325'
alias: SMTP Versand Server
description: SMTP Server-Versand
trigger:
- platform: numeric_state
entity_id:
- sensor.tp357_a0f1_temperature
for:
hours: 0
minutes: 0
seconds: 0
above: 22
action:
- service: notify.notify
data:
message: >-
"Achtung! Die Temperatur im Serverraum übersteigt 22°C. Bitte
kontrolliere die Klimaanlage."
target:
name: Helmut
platform: smtp
server: smtp.office365.com
sender: ***************
port: 587
timeout: 5
encryption: STARTTLS
username: *************
password: ****************
recipient: **************
sender_name: HomeAssistant Helmut
mode: single
Thank you so much!!!