-
-
Notifications
You must be signed in to change notification settings - Fork 586
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 returns names with numbers instead of the types #2197
Comments
Same here with these settings waste_collection_schedule:
sources:
- name: app_abfallplus_de
args:
app_id: de.k4systems.lkemmendingen
city: Biederbach
strasse: Alle Straßen |
That's quite a neat bug. Debugging this is pretty annoying, as it's often not quite clear what went wrong exactly. I already did some trial and error but without success. I will take a deeper look in the coming days. |
@5ila5 can you give me a hint where to start debugging? Couldn't find a starting point as first time user of ha and waste collection schedule. Btw. I hope that those are not real people as there would be way to many less then 18 year old people in a waste collector database imo... |
Generally debugging sources:
app_abfallplus_deTo compare the calls made by the source with the request of the real app, you need: an android (vm?) or IOS (don't know hot this works) device where you can inspect the traffic made by the phone (I use Http Toolkit to inspect the traffic made by my android VM running inside Android Studio) Some changes like the User-Angent and client ID were made with an IPhone (as far as I can tell). But I tried to change them (Andoird has 2 different User-Agents for different requests and client_id must be 5 separate sections instead of one long integer string) and it did not solve anything, so I think the error is probably somewhere else. |
@5ila5 thanks that's helpful, maybe i can find a hint to the bug. Got the dev env running 👍 |
I put together the requests that are made by the app. |
BTW, I suggest you complain to your local council (that is responsible for this public service) about this data being gated behind a private company that actively tries to prevent citizens from accessing it. |
The same Problem with these settings: waste_collection_schedule: two days ago everything was still going. |
Also the same for my city. waste_collection_schedule: |
@HenryLoenwind pretty sure that this is a issue with the HA Plugin and not the data provider. The apps from the waste companies runs pretty fine here and shows the right data. |
Same issue for Rastatt (Abfallplus). Getting Names with Numbers |
My sensors are all "unknown" since 29th of june...
|
Same here for:
Looks to me like birthdays.... |
@ReneNulschDE in my region |
In your case i would suggest to check the log. btw thanks who ever is responsible for putting that return into the log. Very helpfull. It was like in your case city: real_city_name and is now |
I don't know if it helps, but from the looks of things on my end, abfallplus is still changing things atm. 2 days ago i did not have the name problem like the OP, but fantasy dates for the pickup. (between 60 and 200+ days in the future) on my sensors. Now they are all unknown. And as i said in the above post. 2-3 weeks ago the config for my city street changed. But this of course, could be a "normal" update on their side. |
Thank you for the input!
|
Yesterday I wrote an e-mail to [email protected] and explained the API problem getting person names back. But till now I got no feedback, but it looks that someone is playing arround with the data, today I get "unkown" back. |
Same for me. After I tried it with street and house number and then undid it, I no longer have any names with numbers, just "unknown". |
For me too.... I get only "unknown" |
Crazy, but after a restart for other reasons its working as expected, witout changes. waste_collection_schedule:
|
I found the solution. At least in my case it works. I noticed that the sensor calendar.apps_by_abfall was present multiple times. calendar.apps_by_abfall_1 calendar.apps_by_abfall_2 and so on. After I deleted all but one and restarted home assistant everything works again. (In Settings -> Devices and services -> Entities) |
My calendar is empty meanwhile without any entry... |
Doesn't work for me... after reboot still "unknow" |
Thank you. I got the clones too. Deleted them too, followed by a reboot - but still the same problem : state of my sensors is still "unknown" |
Same for me. No change after removing duplicates... |
Oh, I just tested the abfallplus-app on my phone - it works without any problem... I even changed street and Number to see if it really gets new data...changed back, got my data back. Even checked there website - works well, all data is present there. |
The sensor that is left must not have a number at the end. Otherwise it must be renamed. It must be called calendar.apps_by_abfall. |
I did exactly this. No change, still "unknown" |
I'm sorry. It helped me. Then there are probably other reasons. I wish you continued luck |
I spend some more hours on this topic. Here is a code that can be checked. (The code is not final but a starting point.) Changes:
manual testing (abfallappzak - Fischen, lkemmendingen - Biederbach, abfallinfoapp - Weilerswist) |
Hello! Thank you very much! Seems to fix the Problem for me! |
Thanks a lot, this fixes the issue also for me. Before i have had the strange entries with names and since monday an empty schedule. Clearing the double calendar.apps_by_abfall entries did not changed anything. |
Solved the problem in my case as well! Thank you!! |
@AKGitH : Your screenshot does not show the error message. Please share the log entry and your config. |
Btw, in case you need the information, Im using: |
Solved the problem also in my case as well! Thank you!! name: app_abfallplus_de Many thanks again |
THAT solved it for me. |
After the last core update I have the problem again. (sensor status unknown) Since I'm still a complete beginner and my English isn't great, I honestly don't understand what exactly solved the problem for you. Can someone please explain to me what exactly I need to do? Or is there anything wrong with explaining it to me in German? As far as I can see, everyone here is German, right? |
ok. and how exactly do I do that? I can't copy the text in the link (in the github app). |
OK. I got it working. But via the browser and not in the app. But now nothing works. The sensors are no longer available and I get the following error message Logger: homeassistant.setup Unable to prepare setup for platform 'waste_collection_schedule.sensor': Unable to set up component. |
@Tigra16v I think your AppAbfallplusDe.py is not correct, are you sure that you did the copy and replace correct. |
@ReneNulschDE thanks for your effort and support, your update works fine for me |
At least I'm not aware of what I did wrong. I also get the following error message:Logger: homeassistant.setup Error during setup of component waste_collection_schedule |
Leider nicht. Aber bin offen für Vorschläge |
@Tigra16v : I strongly recommend to wait until the code has been merged into the official repo, especially if you have not yet gained so much experience. (My code example was just for testing for "experienced users" and to validate my tests). If you can't/won't wait, click on this link and copy the complete content into the Translated with DeepL.com (free version) @Tigra16v : Ich empfehle dringend zu warten bis der Code in das offizielle Repo eingeflossen ist, speziell wenn Du noch nicht so viel Erfahrung gesammelt hast. (Mein Code Beispiel war nur zum Testen für "erfahrene User" und zur Validierung meiner Arbeit.) Wenn Du nicht warten kannst/willst, klicke auf diesen Link und kopiere den kompletten Inhalt in die |
It's done. I've got it working now. I copied the file into the directory again using the command line. Now everything works. Great 👍 Thank you for the help! |
I Have A Problem With:
A specific source
What's Your Problem
https://community.home-assistant.io/t/waste-collection-schedule-framework/186492/542
The attribute of my sensor do only contain names with numbers.
![image](https://private-user-images.githubusercontent.com/55302242/344202874-353201a8-10a1-4449-ac07-89fa2adb1270.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNjY4NDUsIm5iZiI6MTcyMDE2NjU0NSwicGF0aCI6Ii81NTMwMjI0Mi8zNDQyMDI4NzQtMzUzMjAxYTgtMTBhMS00NDQ5LWFjMDctODlmYTJhZGIxMjcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDA4MDIyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4NDAzNjk4NDMwYzEyYzYzMmJkMzA3YzFhNjhmZjE3YWRjMDZmODVmYjNlMzhhMjlmMzgzY2Y3ZGRhNWFkNzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.a5RA37WHIhvl0QBxcszDhsH1Lbxptae7Ttr3ASHgPJ0)
Source (if relevant)
app_abfallplus_de / ZAK Abfall App
Logs
Relevant Configuration
Sensor (you can use the following wizard:
custom_components/waste_collection_schedule/waste_collection_schedule/wizard/app_abfallplus_de.py
)Checklist Source Error
Checklist Sensor Error
Required
The text was updated successfully, but these errors were encountered: