mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.08k stars 658 forks source link

[Bug]: Highland gov uk source doesn't work with my route but does with the example one #2196

Closed Supermillhouse closed 4 months ago

Supermillhouse commented 4 months ago

I Have A Problem With:

A specific source

What's Your Problem

I am unable to get any of the dates for my route to show up, I am using the highland_gov_uk source.

I have tested it successfully with one of the uprn that 5ila5 used during debugging and everything works ok.

The configuration below is an address that is on my route, but not my address, it also doesn't work. I am currently on build 72f99a9

Source (if relevant)

highland_gov_uk

Logs

no relevant logs

Relevant Configuration

waste_collection_schedule:
    sources:
    - name: highland_gov_uk
      args:
        uprn: 130143631

Checklist Source Error

Checklist Sensor Error

Required

5ila5 commented 4 months ago

If you search on the website for the address associated with this uprn shows We cannot find collection details for this address. Contact recycle@highland.gov.uk for assistance.

You can check here: https://highland-self.achieveservice.com/en/service/Check_your_household_bin_collection_days

You can see the UPRN associated with the address by inspecting the address drop down.

Supermillhouse commented 4 months ago

My apologies, this address is probably part of a commercial collection as it is a Jehovah Witnesses community building.

This is a house down the road, 130072429

I used this site to double check the address and the UPRN, this one should be good, I also tested it in Home Assistant and it also fails to list the collection details in the calendar, i restarted after changing and ran the Service "waste_collection_schedule: Fetch data from all sources."

Supermillhouse commented 4 months ago

I was just looking at the [rows_data][0] for my address and it looks like it only populates data into the keys that end with "old". I believe your code uses the keys ending with new. One of the addresses you used has data in both old and new, but on the gov website only displays the "new" data.

so... if "New" is null use "Old" else use "New"?

5ila5 commented 4 months ago

Fixed in #2201

I thought don't use the Old values anymore, so I ignored them.