Hello,
I have an issue linked to a sensor based in IMAP integration… I get an email from the Alarm company, in order to know whether the alarm was turned on or off, looking at the subject of the email.
Please find it below :
- platform: imap_email_content
server: outlook.office365.com
port: 993
name: Alarme
username: [email protected]
password: xxxxx
senders:
- [email protected]
value_template: >-
{% if 'Activation' in subject %}
Activée
{% elif 'marche' in subject %}
Activée
{% elif 'Désactivation' in subject %}
Désactivée
{% elif 'arrêt' in subject %}
Désactivée
{% endif %}
However, this Alarm sensor is regularly turned to “unknown” and then back to previous state, when there was absolutely no email received at that time…
Any clue on what could trigger this, or what is wrong in my sensor definition?