Skip to content

Instantly share code, notes, and snippets.

@denix0
Created March 31, 2023 19:30
Show Gist options
  • Save denix0/60d825c8844742fc6243fc6df3b75cec to your computer and use it in GitHub Desktop.
Save denix0/60d825c8844742fc6243fc6df3b75cec to your computer and use it in GitHub Desktop.
sensor:
- platform: imap_email_content
server: imap.gmail.com
name: xfinity_status
port: 993
username: !secret xfinity_email
password: !secret xfinity_password
senders:
- [email protected]
value_template: >-
{% if 'XFINITY Home: armed Away' in subject %}
away
{% elif 'XFINITY Home: armed Stay' in subject %}
night
{% elif 'XFINITY Home: armed Night' in subject %}
night
{% elif 'XFINITY Home: disarmed' in subject %}
home
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment