Sending the Daily Brief by Email - TheThinkingHome/device_sentinel GitHub Wiki
The Daily Brief reads best as an email: a formatted page you can scan in a minute. Device Sentinel doesn't send email itself. It hands the brief to Home Assistant's email service, called SMTP, so you set that up once and then pick it in Device Sentinel.
Set Up Email in Home Assistant
- Go to Settings, Devices & services, Add Integration, and search for SMTP.
- Fill in your mail account: sender email and name, host, port, connection security (STARTTLS is recommended), username and password.
- On the SMTP integration's page, choose "Add recipient" and enter the address the brief should go to. Add one recipient for each person.
For Gmail: host smtp.gmail.com, port 587, STARTTLS, your Gmail address as the username, and an app password, not your Google password. Google asks for 2-Step Verification before it lets you create one: in your Google Account, search for "App passwords" and create one for Home Assistant.
Other providers publish their own settings. Search for your provider's name and "SMTP settings".
Choose the Recipient in Device Sentinel
- Go to Settings, Devices & services, Device Sentinel, Configure, Notifications and Daily Brief.
- In "Send the Full Brief To", choose the recipient. It is listed as "Email, HTML" with its name. Don't type an email address: pick it from the list.
- Check that "How Often" isn't set to "Never", and press "Submit".
If It Doesn't Arrive
- Check your spam folder. The first email from a new sender often lands there.
- Check Home Assistant's log. Go to Settings, System, Logs, and search for "Device Sentinel".
- "Daily brief to ... was not delivered: Action ... not found" means the field holds something that isn't a service, usually a typed address. Remove it and choose the recipient from the list.
- Any other reason comes from your mail server. Check the password, host and port in the SMTP integration.
- Remember "How Often". Set to "Only When Something Needs Attention", nothing is sent on a quiet day.
Whether or not it is sent, the dashboard's Daily Brief tab shows the brief for any of the last fourteen days.