-
-
Notifications
You must be signed in to change notification settings - Fork 664
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]: app_abfallplus_de no results #1989
Comments
I can find the citys in the app |
Hi. I have the same problem. It worked a week ago and suddenly all schedules are gone and the log states:
Tried downgrading to 1.46.0 ... no luck. |
And also the same issue here for
City, street and house number are defined exactly as in the app which worked until today morning. |
same here, HA version: 2024.4.3, Waste collection version: 1.47.0
|
Same here, HA Version: 2024.4.3, Waste collection Version 1.47.0
|
Same here: I opened a separate Bugreport by mistake, I will close it right now. |
Same on app_id: de.abfallwecker |
Same problem HA Version 2024.4.3 --> it seems to be a problem with the new HA version |
I don't think so. My update to 2024.4.3. was done in 12th of April and waste collection schedule was working fine with this version until yesterday. And I didn't do any update on that time. |
I use the ICS file form this Website now. Looks like the are using abfall.io waste_collection_schedule:
sources:
- name: ics
args:
url: https://api.abfall.io/?key=<key>&mode=export&idhousenumber=<number>&wastetypes=576,573,20,66,157,572&timeperiod={%Y}0101-{%Y}1231&showinactive=false&type=ics |
I have created a PR to fix this. Looks like the servers are probing for the user-agent now. Tested with
|
@ReneNulschDE Perfect! I tried your code and works for me too... |
Fixed by #1993 (thanks @ReneNulschDE) This will be part of release 1.48.0 or is available now as master (git) version (3-dot menu -> redownload -> change version to master -> fully restart HA (this will increase update cycle by a lot) |
Unfortunately it still doesn't work for me.
But the error hast changed: Logger: waste_collection_schedule.source_shell 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 134, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/app_abfallplus_de.py", line 140, in fetch for d in self._app.generate_calendar(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 795, in generate_calendar self.select_kommune() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 493, in select_kommune regions = self.get_kommunen() ^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 471, in get_kommunen r.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, 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/kommune/ |
Correct, only solved for some of the apps. Needs more time to analyze the new flow. Analysis so far:
|
Thanks @ReneNulschDE for your efforts. Much like the comment above from @daSchizo, this is still not working for me. |
Hello. I have the same problem. Service is unknown since April 17, 2024. waste_collection_schedule: Thank you for your support.. |
Saturday evening update, all test cases except "Bonn orange" are working, I have added some testcases based on the input in this issue. I will prepare a new PR now. (Bonn orange needs to be checked, maybe a different bin type)
|
Confirmed working again for de.k4systems.abfallappbh. |
Additional note: Bonn Orange needs the parameter "city" with the first letter of the street as value.
|
Since yesterday I have the same problem for Nüdlingen. Here my configuration:
I already did a reload with changing to master, but this didn't help. |
You have to wait until the PR #2001 got merged into the master branch and then check again. I tested your config in my env and it is working. |
Sounds good. Thank you very much! |
Thank you @ReneNulschDE Tried to use de.k4systems.abfallinfoapp with city Hellenthal, but still get |
@ReneNulschDE: tested your fixed code, also worked for me :-) thanks, hope you are now the cat ;-) |
Just merged the fix. tested: as mentioned by @ReneNulschDE waste_collection_schedule:
sources:
- name: app_abfallplus_de
args:
app_id: de.albagroup.app
landkreis: Oberhavel # not Kreis Oberhavel
bezirk: Marwitz
city: Oberkrämer
strasse: Dreihügelweg found 64 entries so this should work now after updating the master version |
I can confirm - for me this fix works (at the moment). |
@ReneNulschDE : thanks for your fix, is working now ! |
Tested again - Today! Now it works :-) Thanks for your work! |
I have tried it with Master and I use the following area waste_collection_schedule: Error message Region not found: Logger: waste_collection_schedule.source_shell 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 134, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/app_abfallplus_de.py", line 140, in fetch for d in self._app.generate_calendar(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 786, in generate_calendar self.select_kommune() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 502, in select_kommune raise Exception(f"Region {self._region_search} not found.") Exception: Region Scheinfeld not found. With 1.47.0 I had the error message: Street not found |
@BIGede : Your config is not correct. I tried the following config and this works.
|
No luck with Master waste_collection_schedule: Also error message "Region not found" Logger: waste_collection_schedule.source_shell 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 134, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/app_abfallplus_de.py", line 140, in fetch for d in self._app.generate_calendar(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 786, in generate_calendar self.select_kommune() File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/service/AppAbfallplusDe.py", line 502, in select_kommune raise Exception(f"Region {self._region_search} not found.") Exception: Region Biederbach not found. |
@specularius that it works, you have to follow this instruction (you can also check above): ReneNulschDE commented 5 days ago • Danke für den Link. Wo muss man diesen Code einfügen? |
@chma73 wrote that, but the link is not (or no longer) valid . Error: 404: Not Found |
@specularius hm maybe you can check with @ReneNulschDE |
@chma73 Thanks for the hint. I found it under "hacs_waste_collection_schedule/custom_components/waste_collection_schedule/waste_collection_schedule |
@ReneNulschDE I use exactly this code. Error message is still region not found. |
Then you do not have the right version out of the master branch. HACS has sometimes problems pulling the master versions. You can try to switch to the actual version, install, restart, switch to master, reboot, install, reboot. Or copy the master branch version manually. |
Thank you, now it works again. Reinstalling the master was the solution. |
New small problem, there is no longer an entry for "Biomüll" in the calendar. Apparently this is not collected via the API. |
Since today it stopped working again (de.k4systems.abfallscout) :-( |
de.k4systems.zakb doesn't work with the master branch |
@5ila5 : I'm traveling through southern Europe currently (and the next weeks) and have limited time to analyze it. Maybe you can take a look. I'll try it whenever possible. |
@Breakingx zakb worked for me: {
"app_id": "de.k4systems.zakb",
"strasse": "Ahornweg",
"hnr": "3",
"city": "Fürth",
} @threadstone83 abfallscout worked for me when providing {
"app_id": "de.k4systems.abfallscout",
"city": "Hammelburg",
"bezirk": "Morlesau",
"strasse": "Alle Straßen",
"hnr": "Alle Hausnummern"
} but I made some minor changes, making Maybe HACS did some weird version change? Or they had an outage right when fetching? I just released 1.48.0 so HACS should not make chaos anymore. I will close this for now as all the tested sources do return data now |
@5ila5 after I updated to 1.48.0 it workes again. Thank you very much!!
|
Hello Guys, big thanks for the update!
|
I Have A Problem With:
A specific source
What's Your Problem
I want to use de.k4systems.awbrastatt. I tried several citys. Muggensturm, Bühl, Bühlertal. But the log always says the region was not found.
I tried serveral config. With City and street and without street. But always the same error.
Source (if relevant)
No response
Logs
Relevant Configuration
Checklist Source Error
Checklist Sensor Error
Required
The text was updated successfully, but these errors were encountered: