i have successfully setup my two google emails with the latest imap integration. Both of them show the correct unread email numbers as state. I am also able to get the email content of one of the accounts using the following template sensor.
- trigger:
- platform: event
event_type: "imap_content"
id: "custom_event"
sensor:
- name: imap_content
state: "{{ trigger.event.data['subject'] }}"
attributes:
Message: "{{ trigger.event.data['text'] }}"
Server: "{{ trigger.event.data['server'] }}"
Sender: "{{ trigger.event.data['sender'] }}"
But I am not able to get the emails from second account. How can I get the email content from the second imap integrated account.