Created
March 31, 2023 19:30
-
-
Save denix0/60d825c8844742fc6243fc6df3b75cec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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