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]: Recyclecoach.com (North Port, FL) fails, used to work #3784

Open
5 of 7 tasks
lk229 opened this issue Feb 13, 2025 · 3 comments
Open
5 of 7 tasks

[Bug]: Recyclecoach.com (North Port, FL) fails, used to work #3784

lk229 opened this issue Feb 13, 2025 · 3 comments

Comments

@lk229
Copy link

lk229 commented Feb 13, 2025

I Have A Problem With:

A specific source

What's Your Problem

I can no longer retrieve data from recyclecoach.com for North Port, FL.

This has worked fine for the last year or so but I first noticed it failed on Feb. 8. I rolled back to a backup from the previous month, restarted HA and triggered the waste collection schedule fetch, but couldn't get it to retrieve data.

I can manually go to the data source and retrieve data but I don't know if this is correct or complete.

[](https://us-api-city.recyclecoach.com/collections?project_id=585&district_id=NPORT&zone_id=zone-z14464&lang_cd=en_US

Source (if relevant)

recyclecoach.com

Logs

This error originated from a custom integration.

Logger: custom_components.waste_collection_schedule.waste_collection_schedule.source_shell
Source: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:160
integration: Waste Collection Schedule (documentation)
First occurred: 12:58:18 PM (1 occurrences)
Last logged: 12:58:18 PM

fetch failed for source Recycle Coach: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 158, in fetch entries: Iterable[Collection] = self._source.fetch() ~~~~~~~~~~~~~~~~~~^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/recyclecoach_com.py", line 364, in fetch for year in schedule_def["DATA"]: ~~~~~~~~~~~~^^^^^^^^ TypeError: string indices must be integers, not 'str'

Relevant Configuration

Configuration.yaml ---

waste_collection_schedule:
  sources:
    - name: recyclecoach_com
      calendar_title: Waste Collection Schedule
      args:
        project_id: 585
        district_id: NPORT
        zone_id: zone-z14464
        street: xxxx
        city: North Port
        state: Florida

Waste.yaml ---
value_template: '{{value.types|join(", ")}}|{{value.daysTo}}|{{value.date.strftime("%d.%m.%Y")}}|{{value.date.strftime("%a")}}'

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.
@elic1973
Copy link

I have the same issue from Cresskill, NJ version 2.6.0

@MHassanNadeem
Copy link

Recyclecoach source is broken, looks like their API has changed.

See #3764

@lk229
Copy link
Author

lk229 commented Feb 14, 2025

OK, thanks for the info.

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

3 participants