-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Budgets as negative numbers #40
Comments
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 |
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! |
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! |
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! |
Yes, I considered that but would have to remember to update it if I remove or add any budgets (which really wouldn't be a big deal). |
You don't need to! You could create a sensor with a Jinja mapping. Something like this:
You are selecting all sensors with the "fireflyiii_type" equal to "budgets" and mapping it's state to a float and in the end making a sum! |
Can you possibly give me some insight into why this doesn't work (based of your previous example)?
I am trying to create a sensor that would sum all asset accounts similar to the budgets you helped me with before. TIA |
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?
The text was updated successfully, but these errors were encountered: