There is a limit of the size of the event, so it’s best to not include the message headers if you don’t need them.
You’re going to need to look at the actual value held by the text variable. You can get it directly by using the Events tool or add a sensor to your configuration that gets the value.
- name: Security Email Body Text
state: "{{ trigger.event.data['text'] }}"
Once you get the value you can use the Template editor tool to figure out if the template works.
hi, i have test now (holiday)
the problem is email text. (allarm send a text but on HA i can’t filtrer)
i resolve with a single trigger inserimento e disinserimento for each person.
when person start allarm or stop allarm arrive a email on gmail . gmail filtred the email and HA control singol different folder on gmail.
i need help fo 2 problems:
1 - the email counter check email but i need to now how and when is the last email
2 - there is a way for see on HA entire email Object?
There is also an action imap.fetch which can be used to get the text, subject, sender contents of a message. However you must have extracted the uid from the event in order to use the action.