soloam / ha-fireflyiii-integration

FireflyIII Integration for Home Assistant
MIT License
22 stars 1 forks source link

Budgets as negative numbers #40

Open giuseppebaldi opened 5 days ago

giuseppebaldi commented 5 days ago

Question: I noticed that the budget entity states are brought in as negative numbers but the budget limit attribute is a positive number, is there a reason for this? I am trying to use the Bar Card to set up some budget visuals in HA but the negative/positive numbers are making it difficult (I wanted to use the budget limit as the max limit so I wouldn't have to manually enter these). Do you have any suggestions a workaround? Or can the budget and budget limit both be positive numbers (or both negative would work also)?

Also, would it be possible to bring the total budget & total spent from Firefly?

soloam commented 5 days ago

Hello @giuseppebaldi!

The first idea for the budget sensor was to show the amount you would need to get to your objective... or if you are past it! So if you have somting on the budget, you will need to "add" money to make it full. Ate the moment I'm working on the next release, I'll probably add a checkbox to the config to make the budgets positive and not negative.

Regarding you next question, I'm adding the stats form the main page to sensors, and will be out in the next release! Is that it?

Thank you

giuseppebaldi commented 4 days ago

I see, that makes sense. A checkbox would be a great solution. The stats from the main page would be terrific to but I was referring to the total budget and total spent from the Budgets page, see the attached screenshot.

Thank you so much! Screenshot 2024-11-20 180058

soloam commented 4 days ago

That information isn't already on the attributes of the sensor? If not probably I'm looking at the in dev release! I'll try to get it out as quickly as possible!

giuseppebaldi commented 3 days ago

I'm sorry, what I meant is the total of all the budgets added up into one sensor, along with all the limits added up and what has been spent. I have a sensor for each budget item (groceries, utilities, etc) but would like one for the total budget. I hope that make sense. Thank you!

soloam commented 3 days ago

Oh I see now! I'll see what I can do about that, but that is something you can do with sensor template! A sum of all the values form the budgets!