Custom component Afvalbeheer - Support for multiple waste collectors

Please make an issue on github with some more info.

What’s your config for the sensor?
Are you on the latest version? (because line 1084 is empty in the latest version)

Hi

I’m quite new in HA, and i just found out about your integration :slight_smile:
I live in Belgium and tried to add the sensor, but on my dashboard it shows unavailible
my config:

sensor:

  • platform: afvalbeheer
    wastecollector: Limburg.NET
    resources:
    • restafval
    • gft
    • papier
    • pmd
      postcode: 3830
      cityname: wellen
      streetname: dorpstraat ( example)
      streetnumber: 1a

what I am doing wrong?

It would be more suitable to make an issue for something like this on the github page. But I can see your streetnumber is wrong. It should be 1 and if you would like to add a suffix like a, you should add the suffix option. The address you provided doesn’t have an address dorpstraat 1a (and you spelled dorpsstraat wrong), but the following config works fine:

  - platform: afvalbeheer
    wastecollector: Limburg.NET
    resources:
      - restafval
      - gft
      - papier
      - pmd
    postcode: 3830
    cityname: wellen
    streetname: dorpsstraat
    streetnumber: 1
    # suffix: a

PS If you paste code/configs in the forum or github, please format the text correctly to make sure it’s not an indentation error.

Hi
Indeed it was an an indentation error.
Thanks working now!

Currently my collector doesn’t seem to work anymore
anyone experiencing problems with Meerlanden?

below is not my address but gives same result, address not found

  - platform: afvalbeheer
    wastecollector: Meerlanden
    resources:
      - Restafval
      - GFT
    postcode: 2151KT
    streetnumber: 1
    upcomingsensor: 0
    dateformat: '%d-%m-%Y'
    dateonly: 1
    nameprefix: 1
    builtinicons: 0
    dutch: 1

This is a known issue, will be fixed soon in the next release.

Sorry mist that one, managed to fix it for now :wink:

Hi,

Did you receive any feedback on this?

@Pippyn: Could you verify if there is something in the RecycleApp API for “Zachte Plastics”?
I was also wondering how the API can be accessed?

Regards!

Hi Kevin,

No change to date.
RecycleApp did not reply back to me, other than they would forward my request to Dev.

you can see which fractions are supported with the following Print all available waste fractions option:

Hi Pippyn,

Since this morning, I am seeing the below error in the HA logs when restarting:

Screenshot 2021-03-02 at 10.18.15

Am I the only one experiencing this ?
Or is there something that has changed on the RecycleApp side ?
Or … ?

Thx

I have the same error using recycleapp

Logger: custom_components.afvalbeheer.sensor
Source: custom_components/afvalbeheer/sensor.py:1081
Integration: afvalbeheer (documentation)
First occurred: March 1, 2021, 2:30:09 PM (21 occurrences)
Last logged: 10:30:17 AM

Invalid response from server for accessToken


Logger: custom_components.afvalbeheer.sensor
Source: custom_components/afvalbeheer/sensor.py:1128
Integration: afvalbeheer (documentation)
First occurred: March 1, 2021, 2:30:09 PM (21 occurrences)
Last logged: 10:30:17 AM

Invalid response from server for collection data

Thanks for the confirmation.
Good to know you are not alone with this error.
Must be something RecycleApp has changed…

I’ll have a look and let you guys know

They seem to have updated their x-secret, but it looks like it is still static.

Could you please check if v4.7.16 fixes your issue?

1 Like

Works again for me, thanks @Pippyn :sunny:

Any ideas for a permanent solution?

1 Like

Yes, the update works and fixed the problem.

Thank you so much for your valued support.

1 Like

There is no way of fixing this permanently as they hardcoded this key. Normally it isn’t static, and there would be a function to generate the secret. For now I’ll have to update this every time they do.

1 Like

Can i add 2 addresses in the config? For Home and Work.

sure, just 2 (or as many as you want) in your config. Maybe add a name to differentiate the two.
Example:

  - platform: afvalbeheer
    wastecollector: WasteCollector
    resources:
      - restafval
      - gft
      - papier
      - pmd
    postcode: 1111AA
    streetnumber: 1
    name: 'Home'
  - platform: afvalbeheer
    wastecollector: WasteCollector
    resources:
      - restafval
      - gft
      - papier
      - pmd
    postcode: 1111AA
    streetnumber: 1
    name: 'Work'
1 Like