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]: landkreis_rhoen_grabfeld not working anymore #3006

Closed
3 of 7 tasks
muju91 opened this issue Nov 8, 2024 · 2 comments · Fixed by #3015
Closed
3 of 7 tasks

[Bug]: landkreis_rhoen_grabfeld not working anymore #3006

muju91 opened this issue Nov 8, 2024 · 2 comments · Fixed by #3015

Comments

@muju91
Copy link

muju91 commented Nov 8, 2024

I Have A Problem With:

A specific source

What's Your Problem

It seems for me that the source is not available.

it worked with this config:

waste_collection_schedule:
sources:
- name: landkreis_rhoen_grabfeld
args:
district: "Oberebersbach"

But also when i try to manage it via UI I get this message:

Die Quelle hat eine ungültige Antwort zurückgegeben: "410 Client Error: Gone for url: https://fs-api-rg.offizium.com/abfalltermine?stadt=Niederlauer&ortsteil=Oberebersbach". Bitte überprüfe die Argumente und versuche es erneut.

I tried to ping offizium.com but it is not possible to ping.

Could it be that there is a new url?

My version is 2.4.0

Thx

Source (if relevant)

No response

Logs

No response

Relevant Configuration

No response

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

Finghin commented Nov 9, 2024

It looks like Offizium is no longer providing an API at this address.
There seems to be a new API now at this address:
https://aht1gh-api.sqronline.de/api/modules/abfall/webshow?module_division_uuid=fde08d95-111b-11ef-bbd4-b2fd53c2005a&cityIds=26&areaIds=101
This is the API that is used by https://www.abfallinfo-rhoen-grabfeld.de/, so it should be correct.

The 'cityIds' parameter identifies the 'Kommune' and the 'areaIds' parameter the 'Ortsteil'.
The JSON response contains a list of all available IDs in the mdiv.config object.
The dates for the requested city/area are in the abfall_dates array.

If no one else picks this up until then, I will try to fix it tomorrow.

Finghin added a commit to Finghin/hacs_waste_collection_schedule that referenced this issue Nov 11, 2024
Finghin added a commit to Finghin/hacs_waste_collection_schedule that referenced this issue Nov 11, 2024
5ila5 added a commit that referenced this issue Nov 18, 2024
* fix: source landkreis_rhoen_grabfeld #3006

* fix area-only config for source landkreis_rhoen_grabfeld

* add config parameter suggestions to source landkreis_rhoen_grabfeld

* reformatting

---------

Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
@5ila5
Copy link
Collaborator

5ila5 commented Nov 18, 2024

fixed by #3015

This will be part of the next release or is available now as master (git) version

install master/git: Developer tools -> actions -> select update: Install update -> click Coose entity and select WCS -> select version and type master in the input field -> run the action -> restart HA

Older versions of HACS:

install master with HACS version < 2.0: (3-dot menu -> redownload -> change version to master -> fully restart HA (this will increase update cycle by a lot)

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

Successfully merging a pull request may close this issue.

3 participants