heyajohnny / afvalinfo

Provides Home Assistant sensors for multiple Dutch waste collectors. The idea is to add more cities and features in the future.
GNU General Public License v3.0
103 stars 22 forks source link

Error loading attributes #423

Closed tacopiek closed 10 months ago

tacopiek commented 10 months ago

Screenshot_2024-01-06-09-13-54-92_c3a231c25ed346e59462e84656a70e50

I keep getting error when adding attributes, i have already completely removed the integration and did a new setup but it keeps giving errors. I have checked the postal code and number in the afval app and there it fully works and shows the correct dates.

heyajohnny commented 10 months ago

Maybe create a new entry with a different identifier (see screenshot) and see if that works: Screenshot_2024-01-07-14-08-39-991_com android chrome

tacopiek commented 10 months ago

Maybe create a new entry with a different identifier (see screenshot) and see if that works: Screenshot_2024-01-07-14-08-39-991_com android chrome

Tried this already:( unfortunately doesnt work.

heyajohnny commented 10 months ago

Do you have any errors in your log? Did you remove afvalinfo from your configuration.yaml (if you updated it from v1 to v2)?

tacopiek commented 10 months ago

Do you have any errors in your log? Did you remove afvalinfo from your configuration.yaml (if you updated it from v1 to v2)?

No errors in the log, and yes removed the yaml config lines.

heyajohnny commented 10 months ago

Then I don't know what the problem could be. The last thing that you could consider is deleting the database. (It will automatically be recreated)

PuckStar commented 10 months ago

Did you add the correct sensors? There are 2 types of sensor from what I can remember, maybe you have to pick the other one?

tacopiek commented 10 months ago

Then I don't know what the problem could be. The last thing that you could consider is deleting the database. (It will automatically be recreated)

How do i delete the database? I tried all of the sensors, it still isn't working :(

PuckStar commented 10 months ago

When you check that address on https://4fv4l.nl/ you can see that Restafval is not included. When I look here: https://afvalkalender.sliedrecht.nl/ also there is no date for Restafval. Only for the other types. So it seems like that info is not available already from the Municipality. Are there fixed dates for that Restafval kliko? Or how does it currently work for you? Update: From what I can read you don't have a Restafaval kliko schedule. "Deponeer het in de restafvalcontainer."

Do the sensor for PMD or GFT work properly?

tacopiek commented 10 months ago

Oke the issue for me is fixed, i also filled in the municipality name in home assistant and now all the sensors work. I do have GFT / Restaval / Papier in my municipality which is found ont he 4fv4l website you mentioned ;) I was triggered to test with filling in the municipality from this website, which is not clearly documented in the manual. thnx for pointing me in this direction!

heyajohnny commented 10 months ago

Can you mail me your zipcode (and housenumber)? It could be a bug, because it should work without filling in the municipality. My email is heyajohnny at gmail dot com.

heyajohnny commented 10 months ago

@tacopiek Thx for the mail. It was indeed the special characters (character encoding) that was the problem for both Noardeast-Fryslân and Súdwest-Fryslân.

I've updated the code and it should work now without supplying the municipality

johanb7 commented 7 months ago

I have this same issue, I've updated to the last version but no change. Also from Súdwest-Fryslân

heyajohnny commented 7 months ago

@johanb7 Please spell it as 'sudwest-fryslan'. Then it should work.

johanb7 commented 6 months ago

Where do it put that in? I’m only able to add postalcode and house number.

heyajohnny commented 6 months ago

@johanb7 I think that the problem is fixed. Probably had something to do with the special character encoding on Azure with both Noardeast-Fryslân and Súdwest-Fryslân that worked just fine on my local machine, but not on Azure.

johanb7 commented 6 months ago

Yes, after the update it worked. thanks