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

Wakefield City Council #346

Closed
nmcrae85 opened this issue Sep 20, 2023 · 18 comments · Fixed by #351
Closed

Wakefield City Council #346

nmcrae85 opened this issue Sep 20, 2023 · 18 comments · Fixed by #351
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@nmcrae85
Copy link

I have followed the following instructions....

Install manually
Open the folder for your Home Assistant configuration (where you find configuration.yaml).
If you do not have a custom_components folder there, you need to create it.
Download this repository then copy the folder custom_components/uk_bin_collection into the custom_components folder you found/created in the previous step.
Restart your Home Assistant.
In the Home Assistant UI go to Settings > Devices & Services click + Add Integration and search for UK Bin Collection Data.

When I go into the final step, I never get an option to add the URN for my council?
image

There arent any options for this. Not sure if im supposed to run the python code, but when I try to do this I also get an error. Am I missing something in the config steps or something thats not documented (as its expetd knowledge im missing).
image

@nmcrae85
Copy link
Author

Anyone help out would be great! :)

@nmcrae85
Copy link
Author

Seem to be getting this error.

image

@OliverCullimore are you able to point me in the direction or what im doing wrong? I tried the HACS route but that didnt work as per the above.

@OliverCullimore
Copy link
Collaborator

@nmcrae85 there's currently an issue with releases being published which means that councils that were recently added or fixed won't yet work from HACS or the pip library.

Thanks in advance for your patience while we resolve this.

@nmcrae85
Copy link
Author

nmcrae85 commented Sep 27, 2023 via email

@OliverCullimore
Copy link
Collaborator

@nmcrae85 the releases have now been fixed.

I'd recommend installing via HACS if you can after removing any previous manual installation of the custom_component if you added one.

If you did install via HACS if you can update the custom component via HACS and ensure it's shows "2181ae2" as the version downloaded when you click into it as below.

image

Then remove and re-add the UKBinCollectionData integration if it doesn't automatically start working.

Let us know how you get on.

@nmcrae85
Copy link
Author

nmcrae85 commented Sep 27, 2023 via email

@OliverCullimore
Copy link
Collaborator

@nmcrae85 I've replicated the same happening now in my Home Assistant set up.

I did something a little differently to get around the Imperva capture issues to allow this council to be supported again which it seems didn't cater for the custom component set-up flow.

I'll add a fix for that as soon as I'm able to.

@nmcrae85
Copy link
Author

No worries. Does that mean leave this for the moment or is there a workaround in config?

@OliverCullimore
Copy link
Collaborator

OliverCullimore commented Sep 27, 2023

@nmcrae85 I've submitted a PR with a quick fix that will hopefully get this working well enough initially while we work on a better solution.

Once you see a release that mentions that fix appear here you should be able to update via HACS then remove and re-add the Wakefield integration which should then show the URL field.

@nmcrae85
Copy link
Author

Im running v12 now. Im still seeing the same behavoiur during the setup. I dont see the input to apply the UPN info. I get this screen
image
image

then this
image
image

Hit config and get this?
image

@OliverCullimore
Copy link
Collaborator

@nmcrae85 if you can update to 0.12.1 this may fix this. If not it's likely another issue with the Imperva captcha which may not be able to be resolved.

@nmcrae85
Copy link
Author

Is this the reason im not getting the screen in the config wizard to enter the UPN? Its strange as I do for any other council i select in the dropdown

@OliverCullimore OliverCullimore self-assigned this Sep 29, 2023
@OliverCullimore OliverCullimore added the bug Something isn't working label Sep 29, 2023
@OliverCullimore
Copy link
Collaborator

OliverCullimore commented Sep 29, 2023

@nmcrae85 I'm seeing the following flow using version a10e436:

  • Step 1
image
  • Step 2 (Follow the instructions here until you get the page that includes a "Bin Collections" section then copy the URL and enter it here)
image
  • Step 3
image
  • Step 4
image

The entities don't appear to be populating, most likely due to the Imperva captcha issues, but I am able to set it up

@nmcrae85
Copy link
Author

nmcrae85 commented Sep 29, 2023 via email

@OliverCullimore OliverCullimore removed their assignment Sep 29, 2023
@OliverCullimore OliverCullimore added the help wanted Extra attention is needed label Sep 29, 2023
@OliverCullimore OliverCullimore changed the title Setup problems Wakefield City Council not returning data Sep 29, 2023
@OliverCullimore OliverCullimore changed the title Wakefield City Council not returning data Wakefield City Council Sep 29, 2023
@OliverCullimore
Copy link
Collaborator

This looks to be a general issue now with the council script not returning data due to Imperva captcha issues

Any help to find a workaround for this would be appreciated, otherwise this council might have to be listed as unsupported again

@nmcrae85
Copy link
Author

nmcrae85 commented Oct 6, 2023

Is this one dead then?

@dp247
Copy link
Collaborator

dp247 commented Oct 11, 2023

Is this one dead then?

Most likely, Wakefield are still blocking any attempts made to scrape their site

@dp247
Copy link
Collaborator

dp247 commented Dec 2, 2023

Closing due to incompatibility

@dp247 dp247 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants