UKBinCollectionData: Selenium based councils don't seem to work in HASS
Home Assistant Version
2023.10.3
Installation Method
Using HACS
Name of Council (if relevant)
East Suffolk Council
Issue Information
Selenium based councils never create entities.
Using the custom deps deployment addon for hass i’ve made sure that chromium-chromedriver alpine package is installed.
Manually going into the hass container run by HassOS and using python works fine:
$ docker exec -it homeassistant bash
homeassistant:/config# python3
Python 3.11.5 (main, Sep 28 2023, 17:11:18) [GCC 12.2.1 20220924] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from uk_bin_collection.uk_bin_collection.collect_data import UKBinCollectionApp
>>> bins = UKBinCollectionApp()
>>> bins.set_args(["--postcode=ip119fj","--uprn=10093544720","EastSuffolkCouncil","https://my.eastsuffolk.gov.uk/service/Bin_collection_dates_finder"])
>>> bins.run()
'{\n "bins": [\n {\n "type": "General waste",\n "collectionDate": "20/10/2023"\n },\n {\n "type": "Recycling",\n "collectionDate": "27/10/2023"\n }\n ]\n}'
Try adding any selenium based council into hass and you will not get entities; non-selenium based options work fine (for testing I used North Lanarkshire)
Verification
- I searched for similar issues at https://github.com/robbrad/UKBinCollectionData/issues?q=is:issue and found no duplicates
- If trying to add a specific council, I’ve checked it is listed as working at https://robbrad.github.io/UKBinCollectionData/3.11/
- 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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (8 by maintainers)
Perfect, I’ll work on a PR to implement that plan
I had already installed the chromium and chromium-chromedriver apk packages with the custom deps deployment addon for hass, prior to opening this issue.
We won’t add things to our images that we don’t use in our core ourselves.