Closed Amelsfort closed 2 years ago
Hi @Amelsfort ,
Do you have a bit more information? Do you have an example postalcode + number so I can check the Afvalwijzer API and see the results in the Web API so I can also see what categories they are providing?
For example zipcode 5046GC with house number 1 has the issue.
Thanks. I figured out why you only get half of the info. For this zipcode they have added a category called "dhm". This category is used in other postalcodes for "Retourstoffen" , but for the specified postal code it is used for papier en PMD.
Still strange why you get that outcome that you posted, since the DHM is logged under the category "Textiel", so I would expect that you get that as well (although your settings suggest that you disabled the Textiel category).
You can try and see if you get more information when you set Textiel also to API. The only thing you need to do is make sure the label for Textiel tells you that you have to put the Paper and PMD outside.
It's the only solution I can think of right now, since I don't have any other information that I can extract that tells me where they are using the DHM code for.
Hi,
thanks for the investigation. I checked the site of Afvalwijzer and you're right: it contains the 'wrong' class name for PMD. That also explains why I found this issue only recently: I disabled the unused types.
Maybe it's an option to check the texts? Although I agree checking the class names might be a bit less error prone.
For now I will just enable 'Textiel' and update the texts.
It's been quite some time now, but I might have a possible fix for your issue. If you want, you can test the fix here: https://homey.app/a/com.trashchecker/test/
It is now parsing (for some of the classes) based on the text displayed. And this should fix the ambiguous DHM class.
I have been using this app for a long time now and it worked fine until a few weeks ago. The dates for GFT and rest are retrieved correctly and Homey is notifying me every other week. But for plastic/paper/PMD (the other weeks) no notification occurs. When I check the debug information in the app, I see no dates listed for these kinds of trash. It's not even listed in the information.
My configuration:
The debug information shows the following: