mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
988 stars 631 forks source link

[Bug]: de.biberach.abfallapp throws 401 #2210

Closed Kimotu closed 2 months ago

Kimotu commented 2 months ago

I Have A Problem With:

A specific source

What's Your Problem

Kreis Biberach / Abfall+ App: abfallapp returns 401. Is there any API key missing?

# Abfallkalender
waste_collection_schedule:
  sources:
    - name: app_abfallplus_de
      args:
        app_id: de.biberach.abfallapp
        strasse: Karlstrasse
        hnr: 1

Source (if relevant)

No response

Logs

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: waste_collection_schedule.source_shell
Quelle: custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py:147
Integration: waste_collection_schedule (Dokumentation)
Erstmals aufgetreten: 17:50:02 (1 Vorkommnisse)
Zuletzt protokolliert: 17:50:02

fetch failed for source Apps by Abfall+: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 145, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/app_abfallplus_de.py", line 183, in fetch for d in self._app.generate_calendar(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 929, in generate_calendar self.select_street() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 690, in select_street streets = self.get_streets() ^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 669, in get_streets r.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://app.abfallplus.de/assistent/strasse/

Relevant Configuration

# Abfallkalender
waste_collection_schedule:
  sources:
    - name: app_abfallplus_de
      args:
        app_id: de.biberach.abfallapp
        strasse: Karlstrasse
        hnr: 1

Checklist Source Error

Checklist Sensor Error

Required

5ila5 commented 2 months ago

There are currently some problems with app_abfallplus_de. See: #2197

Kimotu commented 2 months ago

This means it is not planned to fix app_abfallplus_de and I have to remove the waste_collection_schedule from home assistant and manually import collections or scrap homepage?

ReneNulschDE commented 2 months ago

No, this means that the issue is handled in #2197