-
Notifications
You must be signed in to change notification settings - Fork 92
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
HA Component Errors: Bath and North East Somerset #347
Comments
@RealGandy 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. Thanks in advance for your patience while we resolve this. |
@RealGandy the releases have now been fixed so if you can update the custom component via HACS and ensure it's shows "2181ae2" as the version downloaded when you click into it. Then remove and re-add the integration if it doesn't automatically start working. |
Thanks. Updated and tried again .. fully removed and re-downloaded that version. Confirmed that was the same. Configured my council OK, no errors thrown now, but it doesn't display any info, just shows 'No devices or entities'. HACS just offered me a newer version (a552211) which I also downloaded, removed original config and tried again. Still shows 'No devices or entities' How can I help find the issue? Thanks |
So.. logged onto HASS terminal and tried the python script from the command line and get the following errors. Looks like there is an SSL negotiation issue going on here.?
|
@RealGandy sorry disregard that last message I was looking into 2 things at once and had the wrong council's files open. Can you instead firstly check your UPRN is correct by putting it in the UPRN Search field of https://www.findmyaddress.co.uk/search and checking the returned address is the expected one please? If that's all good can you try going to the following URL, replacing the X's with your UPRN please? https://www.bathnes.gov.uk/webapi/api/BinsAPI/v2/getbartecroute/XXXXXXXXXXXX/true You should see it load a JSON string starting with Otherwise, it may appear as if it hasn't loaded anything if you enter an invalid UPRN. Our test UPRN of 100120000855 for Bath is working as expected in my home assistant and is instantly populating 3 entities. |
Yes, UPRN is correct - I found it via findmyaddress.co.uk and have double checked. I plug it into that URL and get a valid JSON payload. I'm running hass as a container, so I can log onto the terminal to run the manual code to collect data and I get the errors thrown as shown on my previous post. It looks to be an SSL negotiation error. I get the same error if I try to connect to the BANES URL just by importing requests in python running in the hass terminal.
I've seen something similar before with the IMAP integration which was fixed by home-assistant/core#91896 I've also found this which gives a suggested workaround by using urllib3: I've tested that example and it works fine for me, maybe you can look at this? Thanks |
@RealGandy can you confirm which version number and type (e.g. Home Assistant OS/Core/Container/Supervised) you're running? It just seems odd that the same version of the custom component is working fine on the Home Assistant container (2023.8.0.dev0) and my production instance (Home Assistant 2023.4.6, Supervisor 2023.09.2) too. |
@RealGandy you can also give using requests via terminal another go but if you can run |
I've redacted your UPRN for you also |
Running 2023.9.3 container. Tried adding that line just before the .get and get the same error message. I would have expected that error to be thrown in the hass log as well, but there are no errors relating to this component now. Yes, very odd that you can connect fine yet my system cannot. I don't have any man-in-middle proxies that could be trying to break and remake the connection that might be causing this. |
@RealGandy thanks for confirming, I've just set up a container using version 2023.9.3 and am experiencing the same where the entities don't get populated. I can only assume the dev version I was using before may have some fixes/is more relaxed on this. I'll look to submit a PR with that workaround you suggested and we can see if that makes this work, I imagine other councils will likely run into the same as they're all using very similar code. |
Good to hear that you have reproduced it - was beginning to think it was me! |
@RealGandy Looking like the fixes in #361 might fix this one for you 🤞 |
@OliverCullimore Just updated to d8ccbcd, but now get the following error and the integration does not load.
|
@RealGandy thanks for those logs, I've replicated the same and submitted another PR ref #365 (comment) |
@RealGandy the latest version appears to be working for me now if you can update and give it another go |
Yes. All working now! Many thanks |
Hi
Just downloaded via HACS and tried to set up for my local council [Bath and North East Somerset] but getting no data.
The following errors are thrown in the homeassistant.log file, suggesting that the HACS install hasn't added all the required files?
I don't see any council.py files in the custom_components/uk_bin_collection directory, or should they be somewhere else?
The text was updated successfully, but these errors were encountered: