robbrad / UKBinCollectionData

UK Council Bin Collection Data Parser Outputting Bin Data as a JSON
MIT License
140 stars 90 forks source link

No longer collecting data correctly from environmentfirst website #603

Closed theolsen closed 8 months ago

theolsen commented 8 months ago

Home Assistant Version

2024.1.6

Installation Method

Using HACS

Name of Council (if relevant)

environmentfirst

Issue Information

There are 2 entities that should be scraped from the website...rubbish & recycling. Recycling is fine but rubbish now returns "This entity is no longer being provided by the uk_bin_collection integration. If the entity is no longer in use, delete it in settings." This behaviour began around one week ago. If I go to the site (https://environmentfirst.co.uk/house.php?uprn=100060053442) I can see that the data is presented correctly.

Verification

robbrad commented 8 months ago

Can you provide any more debug logs from Home assistant?

When I run it I see both bits of data returned

image

theolsen commented 8 months ago

Thanks for looking into it Rob, unfortunately I removed and tried to reinstall before I saw your reply. When I set up again, I go through the configuration. It looks like it has completed but I now get no entities.

Screenshot 2024-02-03 at 14 24 56

Having said that the debug log looks like it is working!

[UKBinCollection] UKBinCollectionApp Updating 2024-02-03 14:17:12.168 INFO (MainThread) [custom_components.uk_bin_collection.sensor] [UKBinCollection] UKBinCollectionApp: { "bins": [ { "type": "Rubbish", "collectionDate": "29/01/2024" }, { "type": "Recycling", "collectionDate": "02/02/2024" } ] } 2024-02-03 14:17:12.168 INFO (MainThread) [custom_components.uk_bin_collection.sensor] [UKBinCollection] Data Supplied: {'bins': [{'type': 'Rubbish', 'collectionDate': '29/01/2024'}, {'type': 'Recycling', 'collectionDate': '02/02/2024'}]} and type of data is <class 'dict'>

theolsen commented 8 months ago

Seems to have sorted itself out now. It was the website at fault. The data there was stale.