---
title: "Andreas (@myrulezzz) | Hashnode"
description: "it. Read the latest articles by Andreas on Hashnode."
url: "https://hashnode.com/@myrulezzz"
---

@myrulezzz

# Andreas

@myrulezzz · Joined December 2020

it

## Comments

[Hi. This worked for me: last\_expense: friendly\_name: Last expense unit\_of\_measurement: € value\_template: > {{ state\_attr('sensor.curve\_email','subject') | regex\_findall\_index("€\\d+.?\\d+") | replace(" €","") | round(2) }} attribute\_templates: seller: > {{ state\_attr('sensor.curve\_email','subject')\[27:1000\] | regex\_findall\_index(".\* on") | replace(" on","")}} Can you explai how you created your expenses card?](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8/comment/5fe87f25999b3f21e3158857)

Comment · Article · Dec 27, 2020 · [Tracking expenses in Home Assistant](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8)

[Can you give me an example what the regex should be with the brlow format?Bogdan Bujdea Pandora Bakeries €3.90 25 December 2020 20:07:52On this card: Andreas Stylianou Mastercard Debit XXXX-8344 Receipt for the purchase (add it using the Curve App): This Transaction will appear on your bank statement as: PANDORA BAKERIES NICOSIA CYP](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8/comment/5fdfe22fb78ac62dff80e4ed#reply-5fe6c5806a146422083ccdf6)

Reply · Article · Dec 26, 2020 · [Tracking expenses in Home Assistant](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8)

[Hi, I am ysing curve but the email is in euro.Basically instead of 10 RON the amount for me is €10 Bogdan Bujdea](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8/comment/5fdfe22fb78ac62dff80e4ed#reply-5fe6c42f999b3f21e31571e2)

Reply · Article · Dec 26, 2020 · [Tracking expenses in Home Assistant](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8)

[Hi tried to follow your guide to do something similar but i am stack at the sensor part. Adding your sensor code without modifying anything i get the below error: TemplateError('IndexError: list index out of range') while processing template 'Template("{{ state\_attr('sensor.curve\_email','subject') | regex\_findall\_index("\\d+.?\\d+? RON") | replace(" RON","") | round(2) }}")' for attribute '\_state' in entity 'sensor.last\_expense' TemplateError('TypeError: 'NoneType' object is not subscriptable') while processing template 'Template("{{ state\_attr('sensor.curve\_email','subject')\[27:1000\] | regex\_findall\_index(".\* on") | replace(" on","")}}")' for attribute 'seller' in entity 'sensor.last\_expense' Any idea why do i get this error? Thanks](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8/comment/5fdfe22fb78ac62dff80e4ed)

Comment · Article · Dec 20, 2020 · [Tracking expenses in Home Assistant](https://hashnode.com/posts/tracking-expenses-in-home-assistant/5fd8ef6cea368e206535d3f8)
