I’m trying to use HA to track my expenses using emails I get from Chase based on this tutorial: https://thewindev.net/tracking-expenses-in-home-assistant
I keep getting config errors and I’m so confused. I’m a newbie, so go easy on me. :. .
I’m trying to use HA to track my expenses using emails I get from Chase based on this tutorial: https://thewindev.net/tracking-expenses-in-home-assistant
I keep getting config errors and I’m so confused. I’m a newbie, so go easy on me. :. .
last_expense:
friendly_name: Last expense
unit_of_measurement: '$'
value_template: >
'{{ state_attr('sensor.chase_email',Your Debit Card Transaction') | regex_findall_index("/\$([0-9]+[\.,0-9]*)/") }}'
attribute_templates:
seller: >
'{{ state_attr('sensor.chase_email','Your Debit Card Transaction') | regex_findall_index("(?s)(?<=to ).+?(?=on)") }}'
date: >
'{{ state_attr('sensor.chase_email','Your Debit Card Transaction') | regex_findall_index("(?s)(?<=on ).+?(?=at)") }}'
time: >
'{{ state_attr('sensor.chase_email','Your Debit Card Transaction') | regex_findall_index("(?s)(?<=at ).+?(?=exceeded)") }}'
Here’s a copy of sensor.chase_email which isn’t showing in developer tools:
sensor:
- platform: imap_email_content
name: chase_email
server: imap.gmail.com
port: 993
username: ******
password: ******
folder: Chase
senders:
- [email protected]