Custom component Afvalbeheer - Support for multiple waste collectors

Please make a new issue on my github with all your informatie, error logs, config, etc.

My sensors for RecycleApp weren’t working either last weekend or around there. It was fixed when I updated the component to the latest version and restarted HA.

1 Like

I can confirm that RecycleApp is working fine for postal code 9120.

1 Like

@Pippyn My sensors are not working voor Circules:

afvalbeheer:

  • wastecollector: Circules
    resources:
    • papier
    • pmd
    • gft
      postcode: 7255NH
      streetnumber: 18
      upcomingsensor: 1
      dateformat: ‘%d-%m-%Y’
      dateonly: 0
      dayofweek: 0
      dateobject: 1
      name: “”
      nameprefix: 0
      builtinicons: 1
      builtiniconsnew: 1
      dutch: 1

image
Have you any idea?

You made a spelling mistake in Circules, it should be Circulus

This config is working fine:

afvalbeheer:
  - wastecollector: Circulus
    resources:
      - BESTAFR
      - GFT
      - Papier
      - PMD
    postcode: 7255NH
    streetnumber: 18
    upcomingsensor: 1
    dateformat: "%d-%m-%Y"
    dateonly: 0
    dayofweek: 0
    dateobject: 1
    nameprefix: 0
    builtinicons: 1
    builtiniconsnew: 1
    dutch: 1

Stupid…Thanks!!

@Pippyn
Would you mind sharing the icons for Restafval, GFT, PMD, Papier and Glas ?
I’d very much appreciate it.
I use your lovely intergrations in a different way.
I have set up customs button who start to blink when there is a collection tommorow but now it’s only text.
I’ve been looking around but can’t find such a lovely tiny icons.
Thanks :blush:

Sure!
You can find the icons here:

Thank you so much but i don’t understand how to point to those icons in yaml. Normally they are stored in the www folder.

Update: found it, not use as an icon but background in a custom button card. :smiley:
So this is how the sensors looking in my dashboard now.
They start to blink when one or more waste is collected tommorrow.

and this is the custom button card from one off them.

type: custom:button-card
show_entity_picture: true
name: PAPIER
entity: input_boolean.sensor_papier
show_icon: false
styles:
  card:
    - height: 120px
    - background: >-
        url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBT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ni43QzM3LjgsNzYuNyAzNyw3Ny40IDM3LDc4LjNDMzcsNzkuMiAzNy43LDc5LjkgMzguNyw3OS45TDQwLjEsNzkuOUM0Mi4zLDc5LjkgNDMuOSw3OS41IDQ1LDc5TDQ1LDg1LjRDNDQuOSw4Ni41IDQ0LjQsODguMSA0MC4xLDg4LjFMMjEuMiw4OC4xQzIwLjMsODguMSAxOS41LDg4LjggMTkuNSw4OS43QzE5LjUsOTAuNiAyMC4yLDkxLjMgMjEuMiw5MS4zTDQwLjEsOTEuM0M0Mi4zLDkxLjMgNDMuOSw5MC45IDQ1LDkwLjRMNDUsOTYuOCIgc3R5bGU9ImZpbGw6cmdiKDAsMTEzLDIwNik7ZmlsbC1ydWxlOm5vbnplcm87Ii8+CiAgICAgICAgPC9nPgogICAgPC9nPgogICAgPGNpcmNsZSBjeD0iMTYiIGN5PSIyOS44IiByPSIxLjciIHN0eWxlPSJmaWxsOnJnYigwLDExMywyMDYpOyIvPgogICAgPHBhdGggZD0iTTE2LjMsMzYuOEwzOS4yLDM2LjgiIHN0eWxlPSJmaWxsOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOnJnYigwLDExMywyMDYpO3N0cm9rZS13aWR0aDozLjNweDtzdHJva2UtbGluZWNhcDpyb3VuZDsiLz4KPC9zdmc+Cg==)
    - background-position: top
    - background-color: '#3b4049'
    - background-size: 75px 75px
    - background-repeat: no-repeat
    - background-position-y: 22px
  name:
    - color: White
    - font: 20px/20px Arial
    - justify-self: center
    - padding-top: 80px
state:
  - value: 'on'
    color: red
    show_icon: false
    styles:
      card:
        - background: green
        - animation: blink 2s ease infinite
      name:
        - color: black
        - font: 20px/20px Arial
tap_action:
  action: call-service
  service: input_boolean.turn_off
  data:
    entity_id: input_boolean.sensor_papier

Hi Lode,

i followed your setup but with me the icons do not blink although the code is telling to blink. Please advise on how to arrange that!

Many thanks in advance.

Hi @Pippyn ,
thanks for this great integration.
Could you help me out pls?
I’m only getting a sensor for Restafval, while the integration confirms I should also get PMD, GFT & Paper.

My code

- platform: afvalbeheer
  wastecollector: RecycleApp
  resources:
    - GFT
    - Papier
    - PMD
    - Restafval
  printwastetypes: 1
  postcode: 2990
  streetnumber: xxxx
  streetname: xxxx
  cityname: xxxx
  upcomingsensor: 1

Hi Marcel,

It’s a little bit of work but i’ll try to help you out.
First you have to create a helper (input_boolean) for any kind of waste like this:

Schermafbeelding 2024-04-06 110111

Then create a sensor for any kind of waste:

 - platform: template
    sensors:
      papier:
        friendly_name: "Papier"
        value_template: >-
          {% set dag = states('sensor.limburg_net_afval_papier') %}
          {% set dag = dag[:6] %}
          {{ dag }}

This sensor is just looking if there is any kind of waste where the left-string of the collectionday = “Morgen”

Next, create an automation for each sensor that turns on the helper when the sensor changes to “Morgen”

You have to play a little bit with the custom-button cards to get the icons in the right position because actually it’s not an icon but a repeated background.

There is a sensor in the configuration called “sensor.limburg_net_afval_morgen” but i don’t know how to deal with that when the next day there are two kinds of collections.
I will figure this out later because i want to display the next collection date by tapping the buttons when they are not blinking.

That’s it, maybe there is a more easy way but i was in a rush to get it done and it works :grin:

Hope i could help you out!

Hi @Klex1404,
Could you please open an issue on my Github repo?
Also provide an address for me to test with.

Hi everyone,

Is there a tutorial of basic explanation as to how to add this to your dashboard? I’m new to HA and i can’t get this HACS integration added anywhere? Any help would be appreciated! Thanks

search for the full name (Home Assistant Sensor Component for afvalbeheer" in HAcs Integration, i did not find it at first to when i was searching for Afvalbeheer" when you have this added add the Yaml code in your configuratiun.yaml: (Code under the explination, i deleted al “options” to make it easyer to start with. be sure to add al information like wastecollector, number, postcode and street name You do not need the " " i did this to make it stand out. )

Blockquoteafvalbeheer:
wastecollector: “changethis”
resources:
- restafval
- gft
- papier
- pmd
postcode:"“changethis”
streetnumber: “changethis”

Hi Lode, thanks for the reply i am going to give it a try this week!

Will let you know if i succeeded.

Can anyone help me with code to switch on an orange licht when its after 6:30 in the morning when PMD is collected, blue when paper is collected and you guessed right, green when GFT is collected?
Had this working but after some updates to the newer programming situation I no longer get it working.

Thanks, Jan

How do the built-in icons work? I’ve enabled them through configuration.yaml, and I have installed the auto-entities card. I’ve then copied the yaml code from one of the screenshots here, but the icons do not show up for me. Instead, I only get those eyes.

My code is:

type: conditional
conditions:

  • condition: state
    entity: sensor.rmn_vandaag
    state_not: Geen
  • condition: state
    entity: sensor.rmn_morgen
    state_not: Geen
    card:
    type: custom:auto-entities
    card:
    type: entities
    entities:
    • entity: sensor.rmn_vandaag
      name: Vandaag
    • entity: sensor.rmn_morgen
      name: Morgen
    • entity: sensor.rmn_papier
      name: Papier
    • entity: sensor.rmn_restafval
      name: Restafval
    • entity: sensor.rmn_gft
      name: GFT
      sort:
      method: attribute
      attribute: Sort-date

I’ve solved the above issue; you need to enable at least builtinicons, instead of just builtiniconsnew to make the icons show up.