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

[Bug]: Sheffield not showing green bins #1969

Open
6 of 7 tasks
danwall8585 opened this issue Apr 12, 2024 · 1 comment
Open
6 of 7 tasks

[Bug]: Sheffield not showing green bins #1969

danwall8585 opened this issue Apr 12, 2024 · 1 comment

Comments

@danwall8585
Copy link

I Have A Problem With:

A specific source

What's Your Problem

Green bin sensor is no longer available despite green bin collection showing on the website.
I know the green bin only shows conditionally on the site based on if an address has paid for the year if that makes any difference (we have paid).

Source (if relevant)

sheffield_gov_uk

Logs

no relevant logs

Relevant Configuration

Version 1.47.0, using HACS.


:
  sources:
    - name: sheffield_gov_uk
      args:
        uprn: xxxxxxxxxxxx
      customize:
        - type: Black Bin
          alias: Black bin (General)
          icon: mdi:trash-can
        - type: Brown Bin
          alias: Brown bin (Bottles)
          icon: mdi:trash-can
        - type: Blue Bin
          alias: Blue bin (Paper)
          icon: mdi:trash-can
        - type: Green Bin
          alias: Green bin (Garden)
          icon: mdi:trash-can

sensor:
  #bins
  - platform: waste_collection_schedule
    source_index: 0
    name: Home bins
    #details_format: upcoming
    #count:
    #leadtime:
    #value_template: 'in {{value.daysTo}} days'
    #date_template:
    add_days_to: true
    #event_index:
    #types:
    #  -
  - platform: waste_collection_schedule
    source_index: 0
    name: Next bin
    details_format: upcoming
    add_days_to: true
    #
  - platform: waste_collection_schedule
    source_index: 0
    name: Black Bin
    details_format: upcoming
    add_days_to: true
    types:
      - Black Bin
      #
  - platform: waste_collection_schedule
    source_index: 0
    name: Green Bin
    details_format: upcoming
    add_days_to: true
    types:
      - Green Bin
    #
  - platform: waste_collection_schedule
    source_index: 0
    name: Brown Bin
    details_format: upcoming
    add_days_to: true
    types:
      - Brown Bin
    #
  - platform: waste_collection_schedule
    source_index: 0
    name: Blue Bin
    details_format: upcoming
    add_days_to: true
    types:
      - Blue Bin

Checklist Source Error

  • Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
  • Checked that the website of your service provider is still working
  • Tested my attributes on the service provider website (if possible)
  • I have tested with the latest version of the integration (master) (for HACS in the 3 dot menu of the integration click on "Redownload" and choose master as version)

Checklist Sensor Error

  • Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)

Required

  • I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
  • I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
@5ila5
Copy link
Collaborator

5ila5 commented Apr 12, 2024

Your config looks like all your specifc sensors should not work as you change the name from Green Bin to Green bin (Garden) and the sensor looks for Green Bin but should look for Green bin (Garden)

I cannot reproduce the issue we currently have 4 test cases, the one that show green bin on the website, do return green bin events.

With green bin 100050938234, 100051085306
Without green bin: 100050961380, 100050920796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants