I want to be able to use e-mail to end notification. The SMTP integration seemed like the obvious choice. I am using my own e-mail server. I configured it as per the integration’s documentation:
notify:
- name: homeemail
platform: smtp
sender: "[email protected]"
recipient: "[email protected]"
server: "mail.mydomain.com"
port: 587
timeout: 10
sender_name: "Home Assistant"
encryption: tls
username: "sender"
password: "senderpassword"
HA accepts this configuration quite happily. I have restarted HA (several times) but it does not recognise the service if I try to use it in a trigger action:
- id: '1684580577820'
alias: Notify Test
description: ''
trigger:
- platform: state
entity_id:
- sensor.powerwall_current_soc
condition: []
action:
- service: notify.homeemail
data:
message: 'SoC changed'
title: 'My Title'
mode: single
HA just complains that ‘notify.homeemail’ is not a known service. Any ideas why? Hope can I get this working?