soloam / ha-fireflyiii-integration

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

First day of months all Piggy banks are clear no entities in HA #3

Closed poudenes closed 4 months ago

poudenes commented 5 months ago

Hi,

All piggy banks will start over because of 1st of month. I have 22 piggy banks. Removed all integrations. restart HA and add just the Piggy bank part.

Only have 1 entity (the status one)

No errors in log.

poudenes commented 5 months ago

My fault. There is only a "Last Month" option and not a "This month" That make sense. Last month everything was paid... Would be nice to have a "This Month"

soloam commented 5 months ago

A this month? All options are relative to today! If you select month, it will ask when does the month start for you! If you say day 1 it will make always form day 1 to the end of the month! Reseting the values at day 1. If you say day 10 for example, it will start the month on the last day 10, and assume until the last second of day 9

Probably what's happening is that today is day 1, and you started the month on day 1, and I still have to make the code to restart the sensors. So if you configured the integration yesterday it will be assuming only the month of April.

Does that makes sense?

soloam commented 5 months ago

I will add to a sensor, or add as attribute, the dates that are being controlled! To help understand the time ranges

poudenes commented 5 months ago
Screenshot 2024-05-01 at 12 19 38

From my perspective I read this:

Last Year: 2023 Last Month: April Last week: Week number 17 Today: Just Piggy banks for today (01-05-2024) Custom:

Screenshot 2024-05-01 at 12 21 44

I think go back X days.

That's why i suggest "This month" It will show all Piggy Banks for this month (May) paid and unpaid.

If someone have also the "Last Month" you can create a second entry

soloam commented 5 months ago

Now in release 0.0.7 it's possible to select:

This is a addition to the existing, and now renamed:

In the server sensor, it's available the information (as attribute) from the data that will be pulled.

Tks for the idea