mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.11k stars 669 forks source link

[Bug]: Kirklees completely new website? #2988

Open andrewpwade opened 2 weeks ago

andrewpwade commented 2 weeks ago

I Have A Problem With:

A specific source

What's Your Problem

The bin lookup UI (and their implementation) seems completely different now and I can't see a link to a calendar (which is what the current implementation looks for). The UI just now shows the next 2 collection dates, that's all you get.

(I've looked at the network requests too - it only returns 2 by default from the API. The API request is incredibly complex, and I can't see an obvious way to get more than 2 bin dates)

Is it worth trying to support this new data source with just 2 calendar days? I could look in to this if you believe it's worth it

If not, should the source be removed as it seems totally incompatible?

Source (if relevant)

kirklees_gov_uk

Logs

No response

Relevant Configuration

No response

Checklist Source Error

Checklist Sensor Error

Required

andrewpwade commented 2 weeks ago

bins

dt215git commented 2 weeks ago

Looking at the various json responses, it seems like there are 2 dates returned for grey bins and up to 4 dates for the green bins.

There are a few other UK-based sources using the apibroker/runLookup approach so you may be able to adapt one of those. I think the biggest challenge is working out the minimum amount of info needed in the payloads. It still appears to be utilising the uprn, so it may be a case of working out what else needs to be supplied alongside that bit of info.

The burnley_gov_uk source might be a useful starting point.

image

image

image

planetcastle commented 2 weeks ago

Not sure if it helps, but the platform that the waste schedule has moved to is Firmstep (owned by Granicus). Burnley_gov_uk is using the same underlying platform that Kirklees now uses. There are several Councils in the UK that use this platform, but obviously implementations will vary. https://support.granicus.com/s/?language=en_US