-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Task due date Unknown #32
Comments
Same issue for me, Trying to create a weekly after chore. (For aquarium waterchanges). Sensor state is Unkown. I tried to update the chore with a service action but sadly without result. The integration seems amazing but sadly not usable for me in this state =( |
I have the same issue with a chore that should be due 6 months after doing it (de-icing the freezer). But when setting the cycle to after 2 days it works fine and shows next due date to be in two days. Hardly ideal, but maybe this gives you some sort of functionality. |
Thanks for the reports about this issue! It seems like there may be a bug somewhere in the due date calculation logic. I have about 30 chores in my system that are all calculating OK, and almost all of them are "after N" chores, so it seems like I must not be using the combination of settings that causes this error. Could someone experiencing this possibly post a list of every setting on that bad chore, including the attributes such as the start date and the last completed date? A screenshot would be fine too. Thank you! |
Hello, I have another addition: This morning I looked at my example again and now the due date is filled. Looking at the history of the entity we can see that the days where updated shortly after midnight on the 24th of January. In my screenshots above you can see that I completed the chore on the 23rd of January. So it looks like the calculation only happens at midnight. Please note that this is not the case for daily chores. I completed a chore today which shall be done again after 2 days and the day counter was updated directly after completing the chore (aka calling the service) |
Any news or fixes in sight? I am having the same issue. I just created an "after 4 weeks" chore and its dates remain on UNKNOWN (even after 24 hours). |
I made an observation: The rest of the chore looks like this: |
I think #40 should fix the issue. Changing the code locally on my home assistant seems to resolve the issues I was having with "after N weeks". |
I can confirm that this PR seems to fix the issue. I applied the changes, restarted HA and within a few seconds of HA fully booting, the chore sensors were updated with the appropriate values, no need to re-complete the chore! |
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Checklist
Describe the issue
Depending on the settings of the chore, the next due date is not always calculated. The only one where I am certain that it is calculated after completing it is when the interval is set to Every/After x days.
When selecting the weekly/monthly/yearly sometimes it will have next date 'unknown' right from the start. Other times it goes to 'unknow' after completing the task for the first time.
Reproduction steps
Debug logs
Diagnostics dump
N/A
The text was updated successfully, but these errors were encountered: