Next Collection Date in the past - How to handle in code? #2516
Unanswered
DavidSpackman
asked this question in
Q&A
Replies: 1 comment
-
Sensors just ignore collections in the past and get unknown if there is no collection in the future. You could try to guess the next collection based on the one date and the rhythm shown on the website below the date. We could also add an option for sensors what to show when there is no collection in the future instead of just going unknown, but I haven't looked into this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I created the source for knox_vic_gov_au
I have realised that the source website does not update the next collection date immediately and still shows the "previous" collection date for an unknown amount of time.
i.e. It is the 21 August now, and the website is still reporting "Next collection is 20 August 2024"
This breaks HA sensors like below
Usually they would have the value "[wastetype] in [x] days", instead their state becomes "unknown"
Is this something that I should look at addressing in the hacs_waste_collection_schedule source for knox_vic_gov_au, or is how I have configured my HA sensors?
Beta Was this translation helpful? Give feedback.
All reactions