Hi
I’m currently logging who arms/disarms the alarm at out office to a file /config/access_log
I would like to be able to send this file using HA’s SMTP integration, but you’re limited to images, audio and video.
Is there a way to, instead of trying to send the file, cat the output of the file into the message contents of the email?
Currently, the automation runs at 6pm every night…
alias: Alarm Log Emailer
description: ""
trigger:
- platform: time
at: "18:00:00"
condition: []
action:
- service: notify.alarm_log_emailer
data:
data:
file: /config/access_log
message: This is an email
title: Alarm Log data
mode: single
But I’m unsure of how to populate the message section with the contents of /config/access_log
Thanks