Skip to content
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

Barnsley Metropolitan Borough Council - some bins are "doubled up" #918

Closed
4 tasks done
ezramorris opened this issue Oct 21, 2024 · 5 comments · Fixed by #921
Closed
4 tasks done

Barnsley Metropolitan Borough Council - some bins are "doubled up" #918

ezramorris opened this issue Oct 21, 2024 · 5 comments · Fixed by #921
Labels
bug Something isn't working

Comments

@ezramorris
Copy link
Contributor

Name of Council

Barnsley Metropolitan Borough Council

Issue Information

In Barnsley (or at least some areas), in the summer the cycle works as Grey bin, Blue & Green bins, Grey bin, Brown & Green bins.

The integration, when set up, is picking up the next 2-bin cycle as one bin as well as a separate Green bin, i.e. if the next bins are Brown & Green, it will create 4 bins "Grey bin", "Blue bin", "Green bin", "Brown, Green bin"

I would expect there to be one device for each bin, i.e. a "Brown bin" device, not a "Brown, Green bin" device. If they happen to be the same day, so be it.

I'm not sure yet what will happen in the week where Blue & Green bins are on, or in the winter when there is no Green bin and it gets round to Brown.

Verification

  • I searched for similar issues at https://github.com/robbrad/UKBinCollectionData/issues?q=is:issue and found no duplicates
  • I have checked my address/postcode/UPRN works on the council's website
  • I have provided a detailed explanation of the issue as well as steps to replicate the issue
  • I understand that this project is run by volunteer contributors therefore completion of this issue cannot be guaranteed
@ezramorris ezramorris added the bug Something isn't working label Oct 21, 2024
@ezramorris
Copy link
Contributor Author

Screenshot 2024-10-22 001717

@robbrad
Copy link
Owner

robbrad commented Oct 22, 2024

@ezramorris can you share the data from under these bins ? What's in the attribute value from under the combined bin?

@ezramorris
Copy link
Contributor Author

Hi @robbrad

Here is the attribute data from the brown, green combined bin (note the colour is set by me):

colour: brown
next_collection: 22/10/2024
days: 0
device_class: bin_collection_schedule
icon: mdi:delete
friendly_name: <redacted location name> Brown, Green bin

And here is the raw json:

{"Brown, Green bin": "22/10/2024", "Grey bin": "29/10/2024", "Blue bin": "05/11/2024", "Green bin": "05/11/2024"}

@robbrad
Copy link
Owner

robbrad commented Oct 22, 2024

@ezramorris thank you

I know why this is happening - this is the raw json from the export and it's where to make that available

I need to have a think about how that's represented in the front end

@ezramorris
Copy link
Contributor Author

I had some time to investigate this today. There is logic in place which splits the bin string for upcoming collections but not next collection. Raised PR with fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants